Re: Accessing string offsets
| From: | Hartmut Holzgraefe | Date: | Sun, 11 Nov 2001 14:17:42 +0000 |
| Subject: | Re: Accessing string offsets | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-70102@lists.php.net to get a copy of this message | ||
Markus Fischer wrote:
<? $string = "foo"; echo $string[3] . "\n"; ?> gives -(1) : Warning - Uninitialized string offset: 3you should use $string{3} instead