[PHP] Re: Extract data

2001-12-04 Thread J Smith
For a split this simple, I'd recommend using explode("|", $data). split() uses a regex for the first character (and as others have said, the pipe is a metacharacter in a regex, so you'll need to use "\|" instead of "|"), whereas explode() is simply literal. explode() will probably be slightly

[PHP] Re: Extract data

2001-12-04 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Dan) wrote: > Warning: unexpected regex error (14) in c:\program files\apache > group\apache\htdocs\eztatic\poll.php on line 25 > > 25: list(q1,q2,q3,q4,q5)= split ("|", $answer, 5); Split() takes a regex as the first argument. The pipe char