"https://appserver3.circasp.com/scripts/WebObjects.exe/CIVITASLAWWebService.woa/ws/Law", "uri" => "urn:xmethods-delayed-quotes", "style" => SOAP_RPC, "use" => SOAP_ENCODED )); $result = $client->__call("getCustomers", array( new SoapParam($userId, "circName"), new SoapParam($password, "circPass"), new SoapParam($email, "email") )); foreach($result as $item){ if ((strpos($item, $userpass)>1)){ $accessvalue = $i++; } else { $accessvalue = $i+0; } } if ($i > 0){ echo "Working, you should have access."; } else { echo "Not Working, go away."; } ?>