2017-06-28 15 views

回答

0

當你調用的功能等:

test(array('name'=>'username', 'position'=>'director')); 

你有什麼有function test($arg = array('name','position'))是默認的參數值的方式。一個數組http://php.net/manual/ro/functions.arguments.php

0

叫它:

你可以閱讀更多關於它在這裏

$name = "Fred"; 
$position = "President"; 
test(array('name' => $name, 'position' => $position));