-1

我是 PHP 新手,需要在 php 中使用这个 web 服务方法:

Method1(string[] s1, string s2, string s3)

可以说 s1 应该是"x","y","z"

谢谢

4

2 回答 2

1

查看php数组:

$s1 = {"x", "y", "z"};

更多信息:PHP 数组

于 2013-10-28T14:09:10.340 回答
1

它是数组,所以$s1在 PHP 中将是:

$s1 = array('x', 'y', 'z');

如果您需要明确使用 in 作为方法论证:

public function Method1(array $s1, $s2, $s3) {
;
}
于 2013-10-28T14:09:13.700 回答