PHP 8.5.0 Alpha 4 available for testing

Voting

: zero minus zero?
(Example: nine)

The Note You're Voting On

elias at need dot spam
20 years ago
The MyIterator::valid() method above ist bad, because it
breaks on entries with 0 or empty strings, use key() instead:

<?php
public function valid()
{
return !
is_null(key($this->var));
}
?>

read about current() drawbacks:
http://php.net/current

<< Back to user notes page

To Top