Re: Very Simple for you !!! Getting part of a string
| From: | Andi Gutmans | Date: | Sun, 07 Jan 2001 16:53:03 +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-43254@lists.php.net to get a copy of this message | ||
At some point (hopefully in the near future) I would like $s{0} to be the standard for string offsets so I suggest you use this syntax and not the array index $s[0] syntax (which will also work).
Andi
At 12:05 PM 1/7/2001 +0100, Derick Rethans wrote:
On Sun, 7 Jan 2001, André Langhorst wrote: The fastest way I guess is using $s[0].$s[1] (yes, it works with strings) 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) Derick Rethans ---------------------------------------------------------------------PHP: Scripting the Web - www.php.net - derick@php.net---------------------------------------------------------------------JDI Media Solutions - www.jdimedia.nl - d.rethans@jdimedia.nl H.v. Tussenbroekstraat 1 - 6952 BL Dieren - The Netherlands--------------------------------------------------------------------- "Actually, I am highly in favor of holding the election all over again. But only if we get to vote for two different guys. " - Thomas R. Fasulo --------------------------------------------------------------------- -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net