Re: Splitting a string

From: Date: Thu, 13 Mar 2003 14:32:19 +0000
Subject: Re: Splitting a string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-139507@lists.php.net to get a copy of this message
On Thu, 13 Mar 2003 09:13:35 -0500, you wrote: >Then split the variable where there is a "S". The problem showed up when >there is another "S" in the field. I only want to split the first "S" at the >beginning of the field. Isn't there an additional value to add to the split $line = 'S12345'; if ($line[0] == 'S') { /* do stuff */ }

« previous php.general (#139507) next »