Vote count:
0
I saw the code below in the PHP Documentation for fgets():
while (($buffer = fgets($handle, 4096)) !== false) {
echo $buffer;
}
My question is: why is there a strict !==
?
Why can't you just do:
while ( $buffer = fgets($handle, 4096) ) {
echo $buffer;
}
asked 1 min ago
PHP fgets() strict !== operator
Aucun commentaire:
Enregistrer un commentaire