Re: [PHP] split behaviour differences in perl and php

2004-09-16 Thread Matthew Sims
> * Thus wrote Sandip Bhattacharya: >> This stumped me badly in my present project. Is this a bug or a feature >> in >> PHP? I am trying to split a string into two, where only one half (and >> the >> delimiter) is present. >> >> >> IN PERL >> == >> [EMAIL PROTECTED

RE: [PHP] split behaviour differences in perl and php

2004-09-16 Thread Andrew Martinez
just PHP being its own language. Cheers, Andrew Martinez RubyBay Inc. > -Original Message- > From: Curt Zirzow [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 16, 2004 10:45 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] split behaviour differences in perl an

Re: [PHP] split behaviour differences in perl and php

2004-09-16 Thread Curt Zirzow
* Thus wrote Sandip Bhattacharya: > This stumped me badly in my present project. Is this a bug or a feature in > PHP? I am trying to split a string into two, where only one half (and the > delimiter) is present. > > > IN PERL > == > [EMAIL PROTECTED] ~]$ cat s1.p

Re: [PHP] split behaviour differences in perl and php

2004-09-16 Thread Burhan Khalid
Sandip Bhattacharya wrote: This stumped me badly in my present project. Is this a bug or a feature in PHP? I am trying to split a string into two, where only one half (and the delimiter) is present. [ trim ] IN PHP === [EMAIL PROTECTED] ~]$ cat s1.php [EMAIL PROTECTED] sql]$ p

[PHP] split behaviour differences in perl and php

2004-09-16 Thread Sandip Bhattacharya
This stumped me badly in my present project. Is this a bug or a feature in PHP? I am trying to split a string into two, where only one half (and the delimiter) is present. IN PERL == [EMAIL PROTECTED] ~]$ cat s1.pl @t = split(/,/ , "a,b"); $len = $#t + 1; print "