[PHP] is_numeric fails and don't know why

2003-02-07 Thread fmendezpalma
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;

Re: [PHP] is_numeric fails and don't know why

2003-02-07 Thread 1LT John W. Holmes
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 valid, so i read line by line and test if the line