Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
配列を作成して、それを個別の引数として関数に渡すことは可能ですか?
$name = array('test', 'dog', 'cat'); $name = implode(',' $name); randomThing($name); function randomThing($args) { $args = func_get_args(); // Would be 'test', 'dog', 'cat' print_r($args); }
いいえ、それcall_user_func_array()が目的です。
call_user_func_array()