Ian P. Christian wrote:
On Friday 25 November 2005 22:15, Rasmus Lerdorf wrote:
It is completely inconsistent
with the rest of PHP.
like how its case sensitive except when it's not.... and how array functions
start array_, except when they don't. if (): is valid, while(): is valid,
but you can't do it with switch, because.. well, it's white space sensitive.
I must be missing something. How is switch whitespace sensitive?
This works fine:
switch(1):case 1:echo'foo';break;endswitch;
-Rasmus
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php