RE: [PHP-WIN] Problem escaping characters

2002-11-14 Thread Dash McElroy
, 2002 2:56 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Problem escaping characters 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 er

[PHP-WIN] Problem escaping characters

2002-11-14 Thread Lars Espelid
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. Have also tried other expressions where I escape characters. They won't work