Re: note 15148 added to function.split

From: Date: Wed, 29 Aug 2001 17:33:40 +0000
Subject: Re: note 15148 added to function.split
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-17317@lists.php.net to get a copy of this message
Your browser interprets the <withthis> as a tag, so you don't see it. ----- Original Message ----- From: "Creative Crow" <creative_crow@hotmail.com> Newsgroups: php.notes To: <php-notes@lists.php.net> Sent: Wednesday, August 29, 2001 7:17 PM Subject: note 15148 added to function.split > I noticed that when using split on a line such as... > > something|something<withthis> > > I was spliting on the "pipe" and split was dropping everything past the "less than" sign. Now I now this has something to do with regular expressions, but honestly not knowing all THAT much about regex - this was a little daunting to say the least. Perhaps we can get the dev guys to add an extra parameter for split to allow the treating of all characters as literal EXCEPT the split character (then again - I wouldn't have to escape the pipe in the split call if it were applied on both arguments to the function).... > > So - I'm off to explode instead - nice, since I really do want to blow something up having wasted all this time wondering WTH?? > > A little harsh, but hey - what does a guy do when the language does something weird like that, and does so extremely quitely. (A warning would have been nice - "Hey dumb coder guy, you're using incompatible characters for that function in your string", is that so hard??). > > Anyway - anyone else out there that was wondering why that was happening to them, now knows... > > (: Crow :) > > http://www.php.net/manual/en/function.split.php >

« previous php.notes (#17317) next »