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

What are super global variables in php?

1007


When should you use a stored procedure?

916


Explain the importance of the function htmlentities.

946


Explain array_uintersect()?

973


What are the popular frameworks in php?

937


What is use of isset function in php?

1004


Why do we use php?

918


Differences between get, post and request methods ?

935


What are the differences between GET and POST methods?

1012


What does == mean in php?

932


Explain what does $_files means?

1035


Tell us how to create an array of a group of items inside an html form?

939


Can you give example for trait in php?

964


Tell me how can we pass the variable through the navigation between the pages?

940


Is empty in php?

929