PHP: How to List All Functions of an Extension

Recently I’ve been doing quite a lot of work that required UUID generation. There is two PHP libraries for generating UUID’s. One of them hasn’t been updated in a long, long time and the second one has absolute no documentation for it. After spending a few moments trying to guess the function names that this newly compiled extension provided, I found that PHP has a command called get_extension_funcs() which does exactly what it says on the tin. It will provide you with a list of functions that an extension can provide.

~

Recently I’ve been doing quite a lot of work that required UUID generation. There is two PHP libraries for generating UUID’s. One of them hasn’t been updated in a long, long time and the second one has absolute no documentation for it. After spending a few moments trying to guess the function names that this newly compiled extension provided, I found that PHP has a command called get_extension_funcs() which does exactly what it says on the tin. It will provide you with a list of functions that an extension can provide.

By running:

<?php  
echo var_dump(get_extension_funcs("uuid"))  
?>

We get the following output:

get_extension_funcs


~

Comments