[英]SOAP Call from iOS to PHP Script
I am currently building a simple iOS that that calls a php page on my server called "SoapTest.php". 我目前正在构建一个简单的iOS,该服务器在我的服务器上调用一个名为“ SoapTest.php”的php页面。 I currently have a test function that takes in a variable called "$x".
我目前有一个测试函数,该函数接受一个名为“ $ x”的变量。 I am sending a request to this function and it can take one variable.
我正在向此函数发送请求,它可以使用一个变量。 But where I am running into the issue is having the function taking in more then one variable or sending back one or more variables.
但是我遇到的问题是让函数接受一个以上的变量或发送回一个或多个变量。
I understand that this PHP function will only work with one variable ($x), but how do it get it work with multiple variables. 我知道此PHP函数仅适用于一个变量($ x),但如何使它适用于多个变量。
Here is my PHP function: 这是我的PHP函数:
function test($x)
{
return $x;
{
If you simply want to add varaibles to the function do this: 如果只想向函数添加变量,请执行以下操作:
function test($x, $y, $z)
{
/*Do stuff here*/
return $x;
{
This will accept 3 variables, $x
, $y
, $z
. 这将接受3个变量,
$x
, $y
, $z
。 You'll then have access to all 3 然后,您将可以访问全部3个
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.