What is the use of functions in PHP
Editor to share with you what is the use of functions in PHP, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Get_extension_funcs ()
This function returns the names of all methods contained in the extension module.
Print_r (get_extension_funcs ("swoole"))
/ / Array
/ / (
/ / [0] = > swoole_version
/ / [1] = > swoole_cpu_num
/ / [2] = > swoole_last_error
/ / [3] = > swoole_async_dns_lookup_coro
/ / [4] = > swoole_async_set
/ / [5] = > swoole_coroutine_create
/ /.
/ / [35] = > swoole_timer_clear
/ / [36] = > swoole_timer_clear_all
/ /)
Its argument is the name of the extension to be queried, so let's take a look directly at which methods are included in the native installation of Swoole. As you can see, there are a total of 37 method functions in Swoole4.4.
The above is all the content of the article "what is the use of functions in PHP". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!