note 3203 deleted from fgets by ronabop
| From: | ronabop@php.net | Date: | Sun, 20 Aug 2000 11:56:28 +0000 |
| Subject: | note 3203 deleted from fgets by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2785@lists.php.net to get a copy of this message | ||
i don't know how to handle the array string:
The result of username and the string length not right~
e.g.
username : "abc "
strlen : 5
e.g. (username.txt)
abc
cde
efgh
Program :
if($myFile = fopen("username.txt","r")){
while(!feof($myFile)){
$username[]=fgets($myFile,20);
}
// Count total user number
$totaluser = count($username);
fclose($myFile);
}
Please help me~~thanks~