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 happens when submit button is clicked?
Whether it is possible to share a single instance of a memcache between multiple php projects?
What is the difference between super () and this ()?
Inside a php function, what param needs to be set in order to access a global variable?
Which will start a session?
Is php object oriented?
Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
What software is required for php?
Maine 12th ke bad 2 years ka web designing ka course kiya hai. Php me achcha hu. Ek fresher ko is field me kitna mil sakta hai ?
How to repeat a string to a specific number of times in php?
What are the special characters you need to escape in double-quoted stings?
Explain me what is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
What are php functions?
Is nan in javascript?
how to open & closing opening period in fico