Re: Re: Illegal string offset error in array
| From: | Rasmus Lerdorf | Date: | Sun, 27 Mar 2005 22:42:36 +0000 |
| Subject: | Re: Re: Illegal string offset error in array | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-211680@lists.php.net to get a copy of this message | ||
Jasper Bryant-Greene wrote:
Johannes Findeisen wrote:Not sure where you got that idea. This is not true. -RasmusHello 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]You can't access string offsets with square brackets [] in PHP5. You need to use curly braces {} instead./* * 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?