Re: Accessing string offsets

From: Date: Sun, 11 Nov 2001 13:27:22 +0000
Subject: Re: Accessing string offsets
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-70103@lists.php.net to get a copy of this message
On Sun, Nov 11, 2001 at 03:17:42PM +0100, Hartmut Holzgraefe wrote : > Markus Fischer wrote: > > ><? > >$string = "foo"; > >echo $string[3] . "\n"; > >?> > > > >gives > > > >-(1) : Warning - Uninitialized string offset: 3 > > you should use $string{3} instead Because it looks kewler and produces the same output ? :) I tested this already too. And see my note about it in the second part of my mail. - Markus

« previous php.dev (#70103) next »