Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 629 Bytes

0377.md

File metadata and controls

17 lines (12 loc) · 629 Bytes

Which of the following statements best describes what happens to an array when array_shift() is called on it?

  • A) All numerical array keys are modified to start from 0 and literal keys are untouched
  • B) The removed element's key still exists in the array but its value is NULL
  • C) All array keys are modified to start from 0 regardless of whether they're numerical or literal
  • D) Remaining array keys are untouched
Answer

Answer: A