Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How to take a substring from a given string?

957


What are the php variables?

975


What is namespaces in PHP?

946


What are the different ways to login to a remote server?

949


Tell me what are the correct and the most two common way to start and finish a php block of code?

915


Explain how to submit form without a submit button.

916


What is a http session?

919


What type of comments are supported by PHP.

943


List types of array are available in php?

943


Write a program in php to find the occurrence of a word in a string?

1041


What is smarty?

907


Tell me how do I check if a given variable is empty?

905


How to write the form tag correctly for uploading files?

922


What’s the difference between htmlentities() and htmlspecialchars()?

1008


How many escape sequences are recognized in double-quoted strings?

961