Tribe__Data::valid()
Checks if current position is valid
Return
(boolean) The return value will be casted to boolean and then evaluated. Returns true on success or false on failure.
Source
File: src/Tribe/Data.php
public function valid() {
$keys = array_keys( $this->data );
return isset( $keys[ $this->index ] );
}
Changelog
| Version | Description |
|---|---|
| 4.11.0 | Introduced. |