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


Please Help Members By Posting Answers For Below Questions

What is difference between require_once(), require(), include()?

520


What is a composer?

537


What language is php based on?

496


Where is the functions php in wordpress?

517


What is difference between web service and api?

515






What is the difference between require_once and require in php?

561


Write a statement to show the joining of multiple comparisons in php?

536


Php program to generate fibonacci series?

551


What is cookies php?

527


What is php session start?

530


Write a program using while loop in php?

574


What is the basic syntax of Php?

622


What is the difference between get & post ?

543


What are classes in php?

558


Explain what is meant by pear in php?

536