note 97793 added to function.glob

From: Date: Sat, 08 May 2010 18:45:17 +0000
Subject: note 97793 added to function.glob
Groups: php.notes 
Request: Send a blank email to php-notes+get-169077@lists.php.net to get a copy of this message
Here is the function array_prepend() used by my latest post of safe_glob(). <?php /** * Prepends $string to each element of $array * If $deep is true, will indeed also apply to sub-arrays * @author BigueNique AT yahoo DOT ca * @since 080324 */ 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; } ?> ---- Server IP: 69.147.83.197 Probable Submitter: 216.239.79.137 ---- Manual Page -- http://www.php.net/manual/en/function.glob.php Edit -- https://master.php.net/note/edit/97793 Del: integrated -- https://master.php.net/note/delete/97793/integrated Del: useless -- https://master.php.net/note/delete/97793/useless Del: bad code -- https://master.php.net/note/delete/97793/bad+code Del: spam -- https://master.php.net/note/delete/97793/spam Del: non-english -- https://master.php.net/note/delete/97793/non-english Del: in docs -- https://master.php.net/note/delete/97793/in+docs Del: other reasons-- https://master.php.net/note/delete/97793 Reject -- https://master.php.net/note/reject/97793 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#169077) next »