Yar_Client::__construct

(PECL yar >= 1.0.0)

Yar_Client::__constructCrear un cliente

Descripción

final public Yar_Client::__construct(string $url, array $options = ?)

Crea un Yar_Client hacia un Yar_Server.

Parámetros

url

El URL del servidor de Yar.

Valores devueltos

Una instancia de Yar_Client.

Ejemplos

Ejemplo #1 Ejemplo de Yar_Client::__construct()

<?php
$cliente
= new Yar_Client("http://host/api/");
?>

El resultado del ejemplo sería algo similar a:


Ver también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top