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

Why triggers are used in mysql?

599


Which is better session or cookie?

613


How to get the value of current session id?

614


What is difference between post and put in rest?

607


Php error constants and their descriptions

687






What is the use of namespace in php?

627


Which function(s) in PHP computes the difference of arrays?

657


What is a http session?

632


Tell me how can I display text with a php script?

604


What is $row in php?

611


What is session in php w3schools?

646


Why php was called as personal home page?

622


Is php easier than node?

600


How many ways to include variables in double-quoted strings in php?

630


What is the difference between $var and $$var?

633