Re: ctype second opinions

From: Date: Fri, 19 Jul 2002 15:33:05 +0000
Subject: Re: ctype second opinions
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7790@lists.php.net to get a copy of this message
On Fri, 19 Jul 2002, Alan Knowles wrote: > > > > > >The whole of the logic that I am trying to convey here similar to: > > > >$string = 'This is a string'; > >$i = 0; > >while ($string[$i] != '') { > > > > should you be using $string{$i} ?? - cant remember the story on that but > at one point it used to issue a warning if you used [] on a string. > > regards > alan You are correct. I just read that it is depreciated to use [] to reference strings by character. http://www.php.net/manual/en/language.types.string.php Thanks, Brent

« previous php.pear.dev (#7790) next »