I'm trying to insert an array via inside a function to the specified global array (refer below)
$array = [];
function insert_array($e,$ed){
$array[] = [ 'name' => 'array 1', 'link' => 0 ];
}
insert_array('s','d');
var_dump($array);
but does not work like the $array is still empty, any ideas, help on how to insert a value to the array inside a function?