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

How to get the total number of values in an array?

1007


Why is facebook still using php?

1090


Can you give example for trait in php?

1009


Is empty in excel?

983


What is sticky form in php?

910


What is faster in php?

1058


Hello Friends,I am seeking for a job in php having 9 months. exp.Please suggest any company openings.

2123


What is the scope of a variable defined in a function?

1073


When to use inquire vs enquire?

985


What is curl php?

1024


How do I run a php file?

966


How do you connet mysql database with php?

1068


What is difference between php and html?

1049


What is encapsulation in php?

980


What is the difference between get and post in php?

1032