Another one

From: Date: Wed, 12 Mar 2003 17:34:40 +0000
Subject: Another one
Groups: php.dev 
Request: Send a blank email to php-dev+get-95070@lists.php.net to get a copy of this message
The following : <?php $a = 1; $b = $a==1? 4,5:6; printf("a[%d]b[%d]\n", $a, $b); ?> gives Parse error: parse error, unexpected ',' in /home/storage/ternary.php on line 3 Similar C program compiles without problems. Is this also known? Andrey P.S. I obey I won't search for more such stuff today :)

« previous php.dev (#95070) next »