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 / vipul dalwala

$a = array('a','b','c','d','f','g','h','i','j','k');

array_splice($a, 0, 5);

Is This Answer Correct ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it more secure to use cookies to trfer session ids?

948


What is PHP? Who is the father or inventor of PHP?

989


How to call php function from javascript using ajax?

936


What are the advantages of php mysql?

914


Which function is used to read a single character from a file in PHP.

994


What websites use php?

910


Do you know what is the function func_num_args() used for?

972


How do I start a php session?

935


Why do we use session?

959


What is mvc in php?

959


How can you compare objects in php?

889


What is difference between ksort() and usort() functions.

865


What are advantages of .htaccess?

899


What is the default time of cookie in php?

926


How to receive a cookie from the browser?

1036