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.
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
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
3 matches
Mail list logo