Re: Re: Illegal string offset error in array
| From: | Rasmus Lerdorf | Date: | Sun, 27 Mar 2005 23:22:59 +0000 |
| Subject: | Re: Re: Illegal string offset error in array | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-211682@lists.php.net to get a copy of this message | ||
Jasper Bryant-Greene wrote:
Rasmus Lerdorf wrote:Yes, please read that link again. The syntax is deprecated. That doesn't mean it doesn't work as you indicated. If we broke this most of the scripts written for PHP4 would break. -RasmusJasper Bryant-Greene wrote:Actually, it is. See the following URL: http://www.php.net/manual/en/language.types.string.php#language.types.string.substrYou 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