Replying to myself now.
On Tue, Nov 4, 2008 at 7:40 AM, Yeti <[EMAIL PROTECTED]> wrote:
>> ltrim($line, '0123456789 .');
>
> I am feeling a bit boneheaded now. How easy things can be.
>
This would not work if the character string after the number started
with a number too.
EXAMPLE
So if one st
> ltrim($line, '0123456789 .');
I am feeling a bit boneheaded now. How easy things can be.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> ...
I was thinking more like this:
ltrim($line, '0123456789 .');
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated November 1st)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Adam Williams a écrit :
I have a file that looks like:
1. Some Text here
2. Another Line of Text
3. Yet another line of text
340. All the way to number 340
And I want to remove the Number, period, and blank space at the begining
of each line. How can I accomplish this?
Opening the file to m
4 matches
Mail list logo