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

How does php serialize work?

510


What changes I have to do in php.ini file for file uploading?

555


Why should I store logs in a database rather than a file?

528


What is alias in php?

544


What is session data?

534






When a conditional statement is ended with an endif?

510


Is facebook still written in php?

544


Is key exist in array php?

527


What are the uses of php language?

519


What is the difference between null and empty?

564


Tell me what is the use of "enctype" attribute in a html form?

542


Tell me what is the actually used php version?

548


Explain me what is the use of 'print' in php?

516


What are the uses of explode() and implode() functions?

527


Tell me what are magic methods?

526