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
What are the 5 types of variables?
what is the use of include_once in php?
What is difference between action hook and filter hook?
Why php 7 is faster?
What is the difference between a session and cookies?
What is an example of a variable?
How do I sort numbers in php?
Do you know what is the differences between $a != $B and $a !== $B?
What are default session time and path?
What are new features in php 7?
What is php good for?
Does php 7 support mysql?
How do you use an array in excel?
What is the use of the function 'imagetypes()'?
How to remove all duplicate values in array in php?