Re: [PHP4BETA] 4b3: split(): bad regular expression for split()

From: Date: Fri, 28 Jan 2000 19:40:37 +0000
Subject: Re: [PHP4BETA] 4b3: split(): bad regular expression for split()
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-9533@lists.php.net to get a copy of this message
On Fri, 28 Jan 2000, Chris Shenton wrote: > Using it on Solaris-2.6 Sparc. > > I used the sample from the online manual: > > <? > $date = "04/30/1973"; // Delimiters may be slash, dot, or hyphen > list( $month, $day, $year ) = split( '[/.-]', $date ); > echo "Month: $month; Day: $day; Year: $year<br>\n"; > ?> > > And I get: > > Warning: bad regular expression for split() in > /opt/whalemail/apache/htdocs/myproject/test/date.php on line 3 > Month: ; Day: ; Year: What Beta version did you use? Try the latest CVS code, it works fine. -Andrei The Heineken Uncertainty Principle: You can never be sure how many beers you had last night.

« previous php.version4 (#9533) next »