View Single Post

  #1 (permalink)  
Old 10-14-2006
Hermann.Richter@gmail.com
 
Posts: n/a
Default Return value of 'each', 'current', 'next', 'end'

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.

Reply With Quote