Posted by Rasmus Lerdorf on 03/28/05 01:42
Jasper Bryant-Greene wrote:
> Johannes Findeisen wrote:
>
>> Hello all,
>>
>> sorry if this has been asked allready but i didn't find any usefull
>> information in the web.
>>
>> Why is this function not working in PHP5?
>> [snip]
>> /*
>> * This line does not work in PHP5 cause off
>> an illegal string offset in an array ERROR
>> */
>>
>> $arrAvailableContent[$i]['submenu'][$n]['file'] = $subfile;
>> [snip]
>> Can someone help?
>
>
> You can't access string offsets with square brackets [] in PHP5. You
> need to use curly braces {} instead.
Not sure where you got that idea. This is not true.
-Rasmus
Navigation:
[Reply to this message]
|