I have two arrays. one will be added with arrays as children, another one keeps references to the array being added to the first one.
$list=array();
$stack=array();
in a for loop:
$list[]=array('something');
$stack[]=& end($list); //errors: Only variables should be assigned by reference
what am i doing wrong here? thanks for help.
new Array? JustArraywill do.