update : 2015.11.03
php.shukuma.com

검색:
 
 
Call service

Yar_Client::__call

(PECL yar >= 1.0.0)

Yar_Client::__callCall service

설명

public void Yar_Client::__call ( string $method , array $parameters )

Issue a call to remote RPC method.

인수

method

Remote RPC method name.

parameters

Parameters.

반환값

예제

Example #1 Yar_Client::__call() example

<?php

$client 
= new Yar_Client("http://host/api/");

/* call remote service */
$result $client->some_method("parameter");
?>

위 예제의 출력 예시:

참고