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.
我是 PHP 新手,需要在 php 中使用这个 web 服务方法:
Method1(string[] s1, string s2, string s3)
可以说 s1 应该是"x","y","z"
"x","y","z"
谢谢
查看php数组:
$s1 = {"x", "y", "z"};
更多信息:PHP 数组
它是数组,所以$s1在 PHP 中将是:
$s1
$s1 = array('x', 'y', 'z');
如果您需要明确使用 in 作为方法论证:
public function Method1(array $s1, $s2, $s3) { ; }