[Edit] prepend at the beginning of an array
prepend or add elements at the beginning of an array function array_prepend($array, $string, $deep=false) { if(empty($array)||empty($string)) return $array; foreach($array as $key => $element) if(is_array($element)) if($deep) $array[$key] = array_prepend($element,$string,$deep); else trigger_error('array_prepend: array element',E_USER_WARNING); else $array[$key] = $string.$element; return $array; } |
This Page is Under Construction! - If You Want To Help Please Send your CV - Advanced Web Core (BETA)
© Advanced Web Core. All rights reserved