Question:What will be the output of the following script?
<?php
$result = '';
function glue ($val){
  global $result;
  $result .= $val;
}
$array = array ('a', 'b', 'c', 'd');
array_walk ($array, 'glue');
echo $result;
?>
 

A abcd 

B glue 

C Array 

D abcdabcd 

E none 

+ Answer
+ Explanation
+ Report
Total Preview: 1085

Copyright © 2024. Powered by Intellect Software Ltd