Re: Very Simple for you !!! Getting part of a string

From: Date: Sun, 07 Jan 2001 14:04:55 +0000
Subject: Re: Very Simple for you !!! Getting part of a string
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-43240@lists.php.net to get a copy of this message
mmm... I always thought that is not the best way to do it, and that $s{0}.$s{1} is the way to do it (I may be wrong)
Some benchmarks show that both ways (substr,[]/{}) are almost identical, speed-wise. substr() seems to be a slice faster... [] and {} give no difference andré -- · André Langhorst · t: +49 571 3201801 · · waldschrott@php.net · m: +49 173 9558736 · · PHP Quality Assurance · http://qa.php.net ·

« previous php.dev (#43240) next »