Nice day for all!
I need to fill the "global" array with other arrays. As an example, I wrote this function:
<?php
function f($ar=array(), $gl=array()){
$gl[0]=array($ar[1]);
}
$globals=array();
$array_example=array('foo', 'bar');
f($array_example, $globals);
print_r($globals); //$globals is empty!
?>
Help me please. I can not understand why the var $globals is empty.
Thanks!