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 character
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
2 matches
Mail list logo