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

Answer Posted / yukti vig

thats should be array_slice

array_splice is used remove a portion of the array and
replace it with something else

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell us how can we display the output directly to the browser?

576


What are the steps involved to run php?

566


Explain the difference between session and cookies in php?

502


The left association operator % is used in PHP for?

572


What are the advantages of using php?

530






What is php built on?

497


Explain what is the use of "echo" in php?

548


What is the purpose of php?

541


What is input sanitization in php?

538


Which function is used in php to check the data type of any variable?

510


Why php is also called as scripting language?

546


What are the Advantages and Application Areas of PHP?

505


Is php class name case sensitive?

508


What software is required to run php?

538


What is php addslashes?

531