Re: removing text from a string

From: Date: Wed, 05 Nov 2008 20:04:41 +0000
Subject: Re: removing text from a string
Groups: php.general 
Request: Send a blank email to php-general+get-282949@lists.php.net to get a copy of this message
Seems to me that this would work, assuming at least one space after the '.' in every line: $string = ltrim($string, "0123456789."); if ($string[0] == ' ') $string = substr($string, 1); But perhaps I'm missing something... I dunno if the OP can guarantee at least one space or not. I may have missed a followup with that detail.

« previous php.general (#282949) next »