Re: [PHP] Escaping characters won't work

2002-11-15 Thread @ Edwin
Hello, "Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote: > At 23:53 14.11.2002, Lars Espelid said: > [snip] > >Try to execute this code: > >if (ereg[^0-9], $num)) > >print "That's not a number!"; > > > >result: parsing error, expects ')' on the if-line.

Re: [PHP] Escaping characters won't work

2002-11-14 Thread Ernest E Vogelsinger
At 23:53 14.11.2002, Lars Espelid said: [snip] >Try to execute this code: >if (ereg[^0-9], $num)) >print "That's not a number!"; > >result: parsing error, expects ')' on the if-line. You forgot an opening bracket, and need to quote the regex, like if

Re: [PHP] Escaping characters won't work

2002-11-14 Thread John Nichel
Hello again... Lars Espelid wrote: Hello, I'm running Apache 1.3.26, PHP 4.0.5 and WinXPpro. My problem is as follows: Try to execute this code: if (ereg[^0-9], $num)) print "That's not a number!"; result: parsing error, expects ')' on the if-line. This one does have a parse error