Practice mode PHP

Which PHP function adds one or more elements to the end of an array?

Correct answer C. array_push()

Explanation

array_push() appends one or more values to the end of an array. array_pop() removes the last element, and array_shift() removes the first one.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.