Question:What will the following script output?
<?php
function sort_my_array ($array){
  return sort ($array);
}
$a1 = array (3, 2, 1);
var_dump (sort_my_array (&$a1));
?>
 

A NULL 

B 0 => 1, 1 => 2, 2 => 3 

C An invalid reference error 

D 2 => 1, 1 => 2, 0 => 3 

E bool (true) 

+ Answer
+ Explanation
+ Report
Total Preview: 751

Copyright © 2024. Powered by Intellect Software Ltd