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

What are php data types?

943


How can we define a variable accessible in functions of a php script?

967


How many escape sequences are recognized in double-quoted strings?

966


How a variable is declared in php?

916


Write a program to find the factorial of a number in php?

956


How to get number of elements in an array?

958


How to return ascii value of character in php?

1083


What is the difference between print() and echo() in PHP?

1008


What is difference between strstr() and stristr()?

992


Does php support polymorphism?

920


Declare a new variable in php equal to the number 3;

899


How is session data stored?

927


What is difference between html and php?

890


What is smarty?

913


How can I use single quotes in single quotes in php?

851