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

How to access a specific character in a string?

989


Which programming language does php resemble to?

1024


Is php an array?

974


What is input sanitization in php?

974


What is the current stable version of php?

1040


What is difference between Method overriding and overloading in PHP?

1047


How to take a substring from a given string?

1018


What is session data?

970


What the use of var_dump()?

1044


How can we increase execution time of a php script?

943


How does php strcmp work?

1069


What is difference between compile time and run time polymorphism?

1013


How do you connet mysql database with php?

1075


What are the advantages of object-oriented programming in php?

928


How can you tell if a number is even or odd without using any condition or loop?

1003