note 118211 added to function.get-defined-functions
| From: | MuneebAslam | Date: | Mon, 26 Oct 2015 19:46:26 +0000 |
| Subject: | note 118211 added to function.get-defined-functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204035@lists.php.net to get a copy of this message | ||
We can also get the function names with this simple foreach
<?php
//Since its a two dimensional array
$functions = get_defined_functions();
//We can use nested foreach to get the function names
foreach($functions as $function){
foreach($function as $thisFunc){
echo $thisFunc . "<br />";
}
}
?>
----
Server IP: 72.52.91.14
Probable Submitter: 84.120.232.37
----
Manual Page -- http://php.net/manual/en/function.get-defined-functions.php
Edit -- https://master.php.net/note/edit/118211
Del: integrated -- https://master.php.net/note/delete/118211/integrated
Del: useless -- https://master.php.net/note/delete/118211/useless
Del: bad code -- https://master.php.net/note/delete/118211/bad+code
Del: spam -- https://master.php.net/note/delete/118211/spam
Del: non-english -- https://master.php.net/note/delete/118211/non-english
Del: in docs -- https://master.php.net/note/delete/118211/in+docs
Del: other reasons-- https://master.php.net/note/delete/118211
Reject -- https://master.php.net/note/reject/118211
Search -- https://master.php.net/manage/user-notes.php