Re: [PHP] ltrim behavior.

2009-03-12 Thread tedd
At 3:38 PM -0400 3/11/09, Robert Cummings wrote: Just because I'm a nice guy... :) Yeah, me too -- here are three routines I use for cutting the right, left and middle portions of strings. These were keyword routines I used in FutureBasic -- they seemed to make sense to me so I carried

Re: [PHP] ltrim behavior.

2009-03-12 Thread tedd
At 5:03 PM -0400 3/11/09, Peter van der Does wrote: Thanks and I apologize for the stupid question. The only stupid question is the one that's not asked. The ltrim() caught me the first time I used it too. I was thinking it was trim this string off the left when it was trim these

Re: [PHP] ltrim behavior.

2009-03-12 Thread Steve Holmes
On Thu, Mar 12, 2009 at 9:47 AM, tedd tedd.sperl...@gmail.com wrote: At 3:38 PM -0400 3/11/09, Robert Cummings wrote: Just because I'm a nice guy... :) Yeah, me too -- here are three routines I use for cutting the right, left and middle portions of strings. These were keyword routines I

Re: [PHP] ltrim behavior.

2009-03-12 Thread tedd
At 10:18 AM -0400 3/12/09, Steve Holmes wrote: On Thu, Mar 12, 2009 at 9:47 AM, tedd mailto:tedd.sperl...@gmail.comtedd.sperl...@gmail.com wrote: Tedd, Just because I'm a nit-picker, your comments are wrong. Exchange the right and left comments and it's right. Steve. Steve: No, my routines

Re: [PHP] ltrim behavior.

2009-03-12 Thread Robert Cummings
On Thu, 2009-03-12 at 12:46 -0400, tedd wrote: At 10:18 AM -0400 3/12/09, Steve Holmes wrote: On Thu, Mar 12, 2009 at 9:47 AM, tedd mailto:tedd.sperl...@gmail.comtedd.sperl...@gmail.com wrote: Tedd, Just because I'm a nit-picker, your comments are wrong. Exchange the right and left

Re: [PHP] ltrim behavior.

2009-03-11 Thread Paul M Foster
On Wed, Mar 11, 2009 at 03:07:18PM -0400, Peter van der Does wrote: This might be old for some of you but I never encountered it until today and I would like to know why this is happening. Here's the situation: php $a='data[options][name]'; php echo ltrim($a,'data['); options][name]

Re: [PHP] ltrim behavior.

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 15:07 -0400, Peter van der Does wrote: php $a='data[options][name]'; php echo ltrim($a,'data['); options][name] Just as I expected. Next one: php $a='options[options][name]'; php echo ltrim($a,'options['); ][name] UH, what? Not exactly what I expected.

Re: [PHP] ltrim behavior.

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 15:34 -0400, Robert Cummings wrote: On Wed, 2009-03-11 at 15:07 -0400, Peter van der Does wrote: php $a='data[options][name]'; php echo ltrim($a,'data['); options][name] Just as I expected. Next one: php $a='options[options][name]'; php echo

Re: [PHP] ltrim behavior.

2009-03-11 Thread Peter van der Does
On Wed, 11 Mar 2009 15:28:04 -0400 Paul M Foster pa...@quillandmouse.com wrote: On Wed, Mar 11, 2009 at 03:07:18PM -0400, Peter van der Does wrote: This might be old for some of you but I never encountered it until today and I would like to know why this is happening. Here's the