I have 10 elements of Array, how can i remove 5 array
element, with single function.

Answer Posted / pankaj

NO Dear vipul Both have great diff. array_slice and
array_splice first one remove from start and return
remaining while second one will have value in array not
remaining.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function file_get_contents() usefull for?

523


How to select a database in php?

579


How to create an array of a group of items inside an html form?

577


How to write a program to make chess?

550


What is the use of mvc in php?

522






Explain the advantages of using PHP?

559


Tell me how to get the value of current session id?

507


When is a conditional statement ended with an endif?

524


what is the scope of php in the future if any other language is developed then may be php is loss ???

13900


How to find the length of a string?

551


How do you end a function in python?

538


What types of MYSQL function available for affecting columns

552


How can we make a constant in php?

556


What is pdo classes?

564


What is composer used for?

514