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 empty function c++?

951


What does pear stand for?

938


Describe which programming language does php parallel to?

965


How does cookies work in php?

968


Which function is used to strip whitespace?

961


what is session_set_save_handler in PHP?

997


How to create a public static method in PHP?

1023


How to invoke a user function?

965


What is static in php?

1010


Tell me which programming language does php resemble to?

921


What is the use of inner join in mysql?

971


Which function is used to read a file removing the html and php tags in it upwork?

918


Does jwt protect against csrf?

912


What is use of echo in php?

924


What do you mean by having php as whitespace insensitive?

973