Quiz on PHP Vector Unshift Function



1. What does the 'unshift' function do in PHP's ds_vector?
2. What is the return type of the unshift function?
3. Which of the following is necessary to use ds_vector in PHP?
4. Can the unshift function add multiple elements at once?
5. What will happen if you call unshift on an empty ds_vector?

Advertisements