Home › Resources and tools for web designers/developers › How to... › Get a List of All Available PHP Functions
Get a List of All Available PHP Functions
This one's actually pretty easy. Just create a new page on your web site with the following code inside it -- when you visit said page, you'll see a (fairly long) list of the PHP functions available to you. What's more is that each function on the list will appear as a link to the function's description and parameters (as found on PHP.net). Here's the code:
<?php $defined_functions = get_defined_functions(); $defined_int_funcs = $defined_functions["internal"]; natsort($defined_int_funcs); print '<div style="font-family: Courier New;">'; foreach ($defined_int_funcs as $sortk => $sortv) { $formatted = str_replace('_','-',$sortv); $function_link = '<a style="text-decoration: none;" href='; $function_link .= '"http://www.php.net/manual/en/function.'; $function_link .= $formatted; $function_link .= '.php" target="_blank">'; $function_link .= $sortv; $function_link .= "()</a><br/>\n"; print $function_link; } print '</div>'; ?>
OR, you can check out this page.



Recent comments
14 weeks 4 days ago
16 weeks 20 hours ago
16 weeks 4 days ago
17 weeks 4 days ago
17 weeks 4 days ago
17 weeks 4 days ago
17 weeks 5 days ago
17 weeks 6 days ago
19 weeks 3 days ago
19 weeks 3 days ago