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 / pankaj

NO Dear vipul Both have great diff. array_slice and
array_splice first one remove from start and return
remaining while second one will have value in array not
remaining.

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 create a public static method in PHP?

1032


What is the best practice for running mysql queries in php? Consider the risk of sql injection.

1063


What is list function with their uses.

968


The left association operator % is used in PHP for?

1046


How to execute an sql query?

988


Which software is best for php?

1004


How to redirect a url from http to https in .htaccess?

985


Tell me how can we determine whether a php variable is an instantiated object of a certain class?

1018


How to upload file in php?

1029


What is php and its uses?

969


What is difference between print_r and echo in php?

891


What are the file upload settings in configuration file?

1039


What is abstract class in php?

1022


What are the steps involved to run php?

1069


What is the Default syntax used in PHP?

1109