function_name
要建立的函數名稱
argument_list
以逗號分隔的參數列表
code
組成函數的程式碼
closure
定義函數的 閉包。
return_by_reference
函數是否應該通過引用返回。
doc_comment
函數的說明文件註釋。
return_type
函數的返回類型。
is_strict
函數是否應該像在 strict_types=1
的檔案中宣告一樣運作
範例 #1 runkit7_function_add() 範例
<?php
runkit7_function_add('testme','$a,$b','echo "The value of a is $a\n"; echo "The value of b is $b\n";');
testme(1,2);
?>
以上範例將輸出
The value of a is 1 The value of b is 2