These array functions: 'each', 'current', 'next', 'end'
They return a reference or a value.
let's say I want to modify the last value of an array without iterating
through all of them.
I would do:
<?
end($array) ;
current($array) ="new value" ;
?>
is that posible??
Thanks.
They return a reference or a value.
let's say I want to modify the last value of an array without iterating
through all of them.
I would do:
<?
end($array) ;
current($array) ="new value" ;
?>
is that posible??
Thanks.
Comment