How can I reset an array in PHP?
Answer Posted / ram
The reset () function moves the internal pointer to the
first element of the array. This function returns the value
of the first element in the array on success, or FALSE on
failure.
Syntax: reset(array)
<?php
echo date("Y-m-d");
$people = array("Prasad", "Ram", "vidhya");
echo current($people) . "<br />";
echo next($people) . "<br />";
echo reset($people);
?>
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
What is php call function?
What is the apache?
Tell me when a conditional statement is ended with an endif?
Explain how to submit form without a submit button.
What is php addslashes?
What are php filters?
Is it possible to remove the html tags from data?
What is __ invoke in php?
Tell me what are the encryption techniques in php?
What are the features of php?
Why shouldn't I use mysql_* functions in php?
What is isset php?
What are the string function in php?
Do you know what is the use of rand() in php?
What is the difference between single quoted string and double quoted string?