Re: Question about character acces, [] vs {}
| From: | Justin French | Date: | Sat, 07 Sep 2002 15:54:27 +0000 |
| Subject: | Re: Question about character acces, [] vs {} | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115607@lists.php.net to get a copy of this message | ||
Somewhere in an article or the manual it *strongly* advises using in {} not
[] for access of a certain character in a string.
Justin
on 07/09/02 5:34 AM, Robert Cummings (robert.cummings@webmotion.com) wrote:
>
> Some time ago i wrote some code where I used the now deprecated
> form of accessing characters in a string $string[x]... Would there
> be much of a performance gain for me to go take the time to update
> the code to the newer $string{x} style?
>
> Cheers,
> Rob.