How can I reset an array in PHP?
Answer Posted / madipally
Its very simple uday,
we have an array of numbers , which contains
"Item1","Item2","Item3".
when we call next($numbers) , the pointer will be jump to
the next item, in this case Item2.After resetting using
reset($numbers) pointer will move to the first location that
is "Item1".
| Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
How to take a substring from a given string?
What are the php variables?
What is namespaces in PHP?
What are the different ways to login to a remote server?
Tell me what are the correct and the most two common way to start and finish a php block of code?
Explain how to submit form without a submit button.
What is a http session?
What type of comments are supported by PHP.
List types of array are available in php?
Write a program in php to find the occurrence of a word in a string?
What is smarty?
Tell me how do I check if a given variable is empty?
How to write the form tag correctly for uploading files?
What’s the difference between htmlentities() and htmlspecialchars()?
How many escape sequences are recognized in double-quoted strings?