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

How to insert a line break in php string?

981


What is return value in php?

989


What is php session and how it works?

987


How to remove white spaces from the beginning and/or the end of a string in php?

971


What is magic function in php?

1017


What does csrf token mean?

924


Do while loops php?

967


What is full form of PHP?

1080


What is final keyword in php?

1024


How to create a session? How to remove data from a session?

983


Explain $_FILES Superglobal Array?

1024


What is difference between session and cookie in PHP?

963


Suppose your zend engine supports the mode Then how can you configure your php zend engine to support Mode ?

972


What is the use of return in php?

902


What is the best php framework 2018?

1008