All pastes #472824 Raw Edit

Anonymous

public php v1 · immutable
·published 2007-05-05 20:47 UTC
rendered paste body
<?php$key=array("abc", "def", "ghi", "jkl");redkey($key);function redkey($array) {	print_r($array); echo "<br />";	foreach ($array as $key => $value) {		$key +=1;		}	print_r($array);		}	?>//the outputArray(    [0] => abc    [1] => def    [2] => ghi    [3] => jkl)<br />Array(    [0] => abc    [1] => def    [2] => ghi    [3] => jkl)