The following code fragment tries to read a sequence of digits from
a file but it doesn't work, only the first character is read,
Which is my error?.

           $str = "";
           while( ($c = fgetc($this->m_file)) && ereg("[0-9]", $c) ){
               $str .= $c;

Thank you in advance

Yoel Benitez Fonseca

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to