[Typo3-dev] OT: Wonders of PHP
Mathias Schreiber [wmdb]
mathias.schreiber at wmdb.de
Thu Nov 17 19:12:44 CET 2005
Bernhard Kraft wrote:
> Hallo,
>
>
> I'm currently working on a C++ project an begun to compare properties of php to C.
>
> And when I came to the switch statement the first thing I thought about that it is
> possible to switch(...) depending on a "string" type in PHP.
>
> No I asked myself: What would PHP do if I switch an ARRAY ????
ever tried:
switch(TRUE) {
case $this->checkValue($var):
break;
}
? ;-)
--
if ($GLOBALS['TSFE']->fe_user->user['ahnung'] == 0) {
$this->fresseHalten = 1;
}
More information about the TYPO3-dev
mailing list