SplFixedArray::valid

Advertisement

Summery Summery

Check whether the array contains more elements

Syntax Syntax

SplFixedArray::valid()

Return Return

(bool) true if the array contains any more elements, false otherwise.

Source Source

File: wp-includes/sodium_compat/src/PHP52/SplFixedArray.php

    public function valid()
    {
        if (empty($this->internalArray)) {
            return false;
        }
        $result = next($this->internalArray) !== false;
        prev($this->internalArray);
        return $result;
    }

Advertisement

Advertisement

Leave a Reply