PHP - 函式處理



函式列表

序號 函式和描述
1 call_user_func()

call_user_func() 函式可以使用第一個引數給出的使用者函式。

2 call_user_func_array()

call_user_func_array() 函式呼叫一個使用者函式,並使用一個引數陣列。

3 create_function()

create_function() 函式是一個內建函式,可用於建立匿名(lambda 風格)函式。

4 forward_static_call()

forward_static_call() 函式可以呼叫靜態方法。

5 forward_static_call_array()

forward_static_call_array() 函式可以呼叫靜態方法並將引數作為陣列傳遞。

6 func_get_arg()

func_get_arg() 函式可以從引數列表中返回一個專案。

7 func_get_args()

func_get_args() 函式可以返回包含函式引數列表的陣列。

8 func_num_args()

func_num_args() 函式可以返回傳遞給函式的引數數量。

9 function_exists()

如果已定義給定函式,則 function_exists() 函式返回 true。

10 get_defined_functions()

get_defined_functions() 函式可以返回所有已定義函式的陣列。

11 register_shutdown_function()

register_shutdown_function() 函式可以在關閉時註冊一個函式以供執行。

12 register_tick_function()

register_tick_function() 函式可以在每次 tick 時註冊一個函式以供執行。

13 unregister_tick_function()

unregister_tick_function() 函式可以登出每次 tick 時執行的函式。

php_function_reference.htm
廣告