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

Answer Posted / phani

$output = array_splice($input, 0, 5));

print_r($output);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are the different errors in php?

541


How does csrf token work?

559


What is a controller in programming?

487


Does php support multiple inheritances?

517


Explain me what is the use of header() function in php?

615






Where are the persistent cookies stored on your computer?

567


What is faster in php?

570


What is difference between sql and php?

535


What new features php7 has in store for us?

557


If we login more than one browser windows at the same time with same user and after that we close one window, then is the session is exist to other windows or not? And if yes then why? If no then why?

480


How can we determine whether a php variable is an instantiated object of a certain class?

515


Tell me how is it possible to remove escape characters from a string?

476


Hi this is amul jani here, i complied my graduation in B.com stream.. but as career i looking for PHP language.. to get shape my career. so is that possible to enter in IT world.. for me how much scope of develop my career in this field.. amul jani

1584


Does php support function overloading?

555


Is uploaded file php?

531