Index: trunk/core/kernel/globals.php =================================================================== diff -u -r1750 -r1801 --- trunk/core/kernel/globals.php (.../globals.php) (revision 1750) +++ trunk/core/kernel/globals.php (.../globals.php) (revision 1801) @@ -22,6 +22,19 @@ return $paArray1; } + /** + * @return int + * @param $array array + * @param $value mixed + * @desc Prepend a reference to an element to the beginning of an array. Renumbers numeric keys, so $value is always inserted to $array[0] + */ + function array_unshift_ref(&$array, &$value) + { + $return = array_unshift($array,''); + $array[0] =& $value; + return $return; + } + if (!function_exists('print_pre')) { /** * Same as print_r, budet designed for viewing in web page