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);

This site is a digital habitat of Sameer Borate, a freelance web developer working in PHP, MySQL and WordPress. I also provide web scraping services, website design and development and integration of various Open Source API's. Contact me at metapix[at]gmail.com for any new project requirements and price quotes.

3 Responses

1

Holger

January 16th, 2009 at 2:40 pm

na herzlichen gl├╝ckwunsch

2

Sameer Borate’s Blog: PHP built in functions map | How2Pc

January 17th, 2009 at 11:17 pm

[...] has put together a few images, the results from the Wordle website when he plugged in the names of the built-in functions [...]

3

sonja

January 19th, 2009 at 7:54 am

Nice, right now I’m using it as a desktop background.

Your thoughts