Question:What is the output for the following code?
<?php 
$array = array(10,20, 30, 40);
array_shift($array); 
print_r($array); 
?>
 

A [0]=> 20, [1]=> 30, [2]=> 40 

B [0]=> 10, [1]=> 20, [2]=> 30 

C [0]=> 30, [1]=> 40, [2]=> 10 

D [0]=> 40, [1]=> 30, [2]=> 20 

+ Answer
+ Report
Total Preview: 732

Copyright © 2024. Powered by Intellect Software Ltd