array thing
Posted: Sat Oct 11, 2008 2:49 pm
I am a php newbie..........just been a few days since ive started practising php and my first post on this forum........ heres the confusing code.......
It gives me an error .......
PHP Parse error: syntax error, unexpected T_DOUBLE_ARROW in
but when i remove the extra pair of brackets inside the array function it seems to work just fine.....
i cant seem to understand why would the interpreter have a problem with that......... its syntactically proper in all the other languages that ive encountered up until now ........ could you throw some light on it....
thanks guys
Code: Select all
<?php
$census_data = array(('New York' => array('NY' => 8008278)));
?>
PHP Parse error: syntax error, unexpected T_DOUBLE_ARROW in
but when i remove the extra pair of brackets inside the array function it seems to work just fine.....
i cant seem to understand why would the interpreter have a problem with that......... its syntactically proper in all the other languages that ive encountered up until now ........ could you throw some light on it....
thanks guys