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 :)



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to