PHP reset() functionThe PHP reset( ) function is used to move the array's internal pointer to the first element. This function was introduced in PHP 4.0. SyntaxParameter
ReturnsThe reset( ) function returns the value of the first array element or false if the array is empty. Example 1Output: sachin Example 2Output: cat dog cat Example 3Output: os dbms java Example 4Output: os dbms os java
Next TopicPHP Array Functions
|