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...

I have 10 elements of Array, how can i remove 5 array
element, with single function.

Answer Posted / phani

$output = array_splice($input, 0, 5));

print_r($output);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between for and foreach in php?

1038


Is it possible to use com component in php?

970


Explain how we can retrieve the data in the result set of mysql using php?

974


what is session_set_save_handler in PHP?

997


What is string in php?

980


What are examples of independent and dependent variables?

946


How to make horizonatl menu and vertical menu responsive

2296


What is the static variable in function useful for?

953


How can a cross-site scripting attack be prevented by php?

979


What is htmlentities function in php?

947


What does odbc do in context with php?

1026


What is a php object?

937


What does == mean in php?

963


What is the use of @ in php?

1033


Explain how can we execute a php script using command line?

1013