* Thus wrote Dan Joseph ([EMAIL PROTECTED]):
> Hi,
>
> > > Let's say I have a number: 1281924
> > >
> > > The rules call for removing "1280+", meaning remove 128 and all 0's that
> > > come after it, until you run into another number.
> > >
> > > In the end, it would leave 1924, and everything
Hi,
> make me wonder why people are on the list if they all post answers
> only back to the user.
Probably just a case of hitting reply and not paying attention to it, or
not realizing that it replies to the direct user.
-Dan Joseph
--
PHP General Mailing List (http://www.php.net/)
To
* Thus wrote Dan Joseph ([EMAIL PROTECTED]):
> Thanks John,
>
> You and 4 others (3 private direct replies) all gave me the same
> suggestion. I have no idea why I never think to use a regex... Appreciate
> the thought!
make me wonder why people are on the list if they all post answers
on
Hi,
> > Let's say I have a number: 1281924
> >
> > The rules call for removing "1280+", meaning remove 128 and all 0's that
> > come after it, until you run into another number.
> >
> > In the end, it would leave 1924, and everything else on the beginning
> would
> > be gone.
>
> $new_number =
On Jul 24, 2003, "Dan Joseph" claimed that:
|Hi,
|
| Just looking for an opinion on how you would do this...
|
| Let's say I have a number: 1281924
|
| The rules call for removing "1280+", meaning remove 128 and all 0's that
|come after it, until you run into another number.
, July 24, 2003 1:44 PM
> To: Dan Joseph; [EMAIL PROTECTED]
> Subject: Re: [PHP] just looking for some opinions...
>
>
> > Let's say I have a number: 1281924
> >
> > The rules call for removing "1280+", meaning remove 128 and all 0's that
>
> -Original Message-
> From: CPT John W. Holmes [mailto:[EMAIL PROTECTED]
> Sent: 24 July 2003 18:44
>
> > Let's say I have a number: 1281924
> >
> > The rules call for removing "1280+", meaning remove 128 and
> all 0's that
> > come after it, until you run into another number.
> >
>
> Let's say I have a number: 1281924
>
> The rules call for removing "1280+", meaning remove 128 and all 0's that
> come after it, until you run into another number.
>
> In the end, it would leave 1924, and everything else on the beginning
would
> be gone.
$new_number = preg_replace('/^1280+/'
Hi,
Just looking for an opinion on how you would do this...
Let's say I have a number: 1281924
The rules call for removing "1280+", meaning remove 128 and all 0's that
come after it, until you run into another number.
In the end, it would leave 1924, and ever
9 matches
Mail list logo