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 does the unset() function mean?

1000


What is rest api in php?

900


What is empty php?

930


Which php framework is best for beginners?

1031


What is the difference between null and empty?

960


Explain Constant in Class?

962


How does csrf attack work?

961


How do you end a session in php?

1005


Can I use node js with php?

968


What is mysqli_fetch_array?

952


How do you define a constant?

923


What is php's mysqli extension?

968


What software is required for php?

984


What is full form of php? Who is the father or inventor of php?

942


What are traits?

1183