Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 517 Bytes

0100.md

File metadata and controls

37 lines (30 loc) · 517 Bytes

Consider the following script:

$a = array('a''b'); 
array_push($aarray(1, 2)); 
print_r($a);

What will be the output?

  • A)
array('a', 'b', array(1, 2))
  • B)
array(array(1, 2), 'a', 'b')
  • C)
array('a', 'b', 1, 2)
  • D)
array(1, 2, 'a', 'b')
Answer

Answer: A