Why don't ...

From: Date: Sun, 16 Dec 2001 14:14:57 +0000
Subject: Why don't ...
Groups: php.general 
Request: Send a blank email to php-general+get-77863@lists.php.net to get a copy of this message
Hi! 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

« previous php.general (#77863) next »