Re: Accessing string offsets

From: 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: 3
you should use $string{3} instead

« previous php.dev (#70102) next »