PHP built in functions map

Wordle is a online Java Applet for generating word clouds. The application is simple. You enter a bunch of text and Wordle does the rest. The applet provides options to change color, font and layout. Just for fun I created a Wordle cloud to display php’s built in functions. Two samples are shown below. The size of the font in the cloud is proportional to the number of functions starting with the particular name.

php built in functions map

php built in functions map

The word list to generate the cloud was obtained by the following code:

$functions_list = get_defined_functions();
 
foreach($functions_list['internal'] as $function_name) {
    echo($function_name) . "\n";
}

To see how many functions start with a particular name the following code was used:

$functions_list = get_defined_functions();
$keys = array();
 
foreach($functions_list['internal'] as $function_name) {
    $pieces = explode("_", $function_name);
    array_key_exists($pieces[0], $keys) ? $keys[$pieces[0]]++ : $keys[$pieces[0]] = 1;
}
 
arsort($keys);
print_r($keys);


3 thoughts on “PHP built in functions map

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>