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 */ }


$str = "S12345"; $str1 = ltrim($str,"S");


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to