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

Hi Yukti,

You can also use array_slice but array_splice is also not
the wronng one.

array_splice function can take four arguments if you omit
the fourth argument which is for replacement array this
function will serve the same purpose as array_slice.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is time a dependent variable?

904


What is the php function that removes the last element of the array and returns it?

915


What are the encryption functions in php?

1066


Is php case sensitive?

854


What is the expansion of LAMP?

1002


What are php magic methods?

947


What is fetch array in php?

1036


How arrays are passed through arguments?

1020


What are the functions used in php?

983


How many keywords are there in php?

1072


Is php still used?

905


What is polymorphism in oop php?

939


How many php functions are there?

999


Why use static methods php?

990


How do we get the current session id?

956