a" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 07, 2003 7:29 AM
Subject: [PHP] is_numeric fails and don't know why
Hi,
I'm trying to read a file that contains a group of numbers, each of them in
one line of the file. I need to verify that the file is v
Hi,
I'm trying to read a file that contains a group of numbers, each of them in one line
of the file. I need to verify that the file is valid, so i read line by line and test
if the line is numeric:
...
$line = fgets ($FileDesc);
$line = trim ($line);
if (!is_numeric ($line))
return 0;
...
2 matches
Mail list logo