Problem:
I did some research to figure out how you could get a list of all function names in PHP in a text string but without full success. I used get_defined_functions()
to get a list of functions but it does not return variable handling functions
(see http://php.net/manual/en/ref.var.php), misc functions like die()
(see http://php.net/manual/en/ref.misc.php), some string functions like echo
(see http://php.net/manual/en/ref.strings.php) and functions like array()
.
Code:
$arr = get_defined_functions();
foreach ($arr['internal'] as $key => $value)
{
echo $value . ', ';
}
Desired output:
To get all predefined functions in a text string.