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 / yukti vig

thats should be array_slice

array_splice is used remove a portion of the array and
replace it with something else

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of isset() in php?

1071


What software is required for php?

1078


What is the importance of "action" attribute in a html form?

1050


Does php need a closing tag?

998


How do you compare strings in java?

980


What is difference between strstr() and stristr()?

1163


What is helper function?

978


where do we use htaccess?

1037


What is get and post method in php?

1056


How to get useful error messages in php?

1090


What is a php trait?

994


What is the method to execute a php script from the command line?

1089


What is the function file_get_contents() usefull for?

1005


What are the benefits of composer?

1060


What is reference variable php?

1075