PHP MCQ Arrays in PHP MCQ Question #2386
Single Choice Not Set

QWhich in-built function will add a value to the end of an array?

ID: #2386 Arrays in PHP MCQ 2,321 views
Question Info
#2386Q ID
Not SetDifficulty
Arrays in PHP MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A array_unshift()
  • B into_array()
  • C inend_array()
  • D array_push()
Correct Answer

Explanation

array_push adds a value to the end of an array, returning the total count of elementsin the array after the new value has been added.

Share This Question

Challenge a friend or share with your study group.