Re: [PHP] just looking for some opinions...

2003-07-24 Thread Curt Zirzow
* 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

RE: [PHP] just looking for some opinions...

2003-07-24 Thread Dan Joseph
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

Re: [PHP] just looking for some opinions...

2003-07-24 Thread Curt Zirzow
* 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

RE: [PHP] just looking for some opinions...

2003-07-24 Thread Dan Joseph
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 =

Re: [PHP] just looking for some opinions...

2003-07-24 Thread Jeff Harris
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.

RE: [PHP] just looking for some opinions...

2003-07-24 Thread Dan Joseph
, 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 >

RE: [PHP] just looking for some opinions...

2003-07-24 Thread Ford, Mike [LSS]
> -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. > > >

Re: [PHP] just looking for some opinions...

2003-07-24 Thread CPT John W. Holmes
> 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+/'

[PHP] just looking for some opinions...

2003-07-24 Thread Dan Joseph
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