note 84366 added to function.get-defined-functions

From: Date: Thu, 10 Jul 2008 14:13:01 +0000
Subject: note 84366 added to function.get-defined-functions
Groups: php.notes 
Request: Send a blank email to php-notes+get-141366@lists.php.net to get a copy of this message
for user defined function <?php /** * @param string $function_name The user function name, as a string. * @return Returns TRUE if function_name exists and is a function, FALSE otherwise. */ function user_func_exists($function_name = 'do_action') { $func = get_defined_functions(); $user_func = array_flip($func['user']); unset($func); return ( isset($user_func[$function_name]) ); } ?> ---- Server IP: 124.217.231.13 Probable Submitter: 60.48.242.211 ---- Manual Page -- http://www.php.net/manual/en/function.get-defined-functions.php Edit -- https://master.php.net/note/edit/84366 Del: integrated -- https://master.php.net/note/delete/84366/integrated Del: useless -- https://master.php.net/note/delete/84366/useless Del: bad code -- https://master.php.net/note/delete/84366/bad+code Del: spam -- https://master.php.net/note/delete/84366/spam Del: non-english -- https://master.php.net/note/delete/84366/non-english Del: in docs -- https://master.php.net/note/delete/84366/in+docs Del: other reasons-- https://master.php.net/note/delete/84366 Reject -- https://master.php.net/note/reject/84366 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#141366) next »