php / 8.1.5 / yar-client.construct.html /

Yar_Client::__construct

(PECL yar >= 1.0.0)

Yar_Client::__constructCreate a client

Description

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

Create a Yar_Client to a Yar_Server.

Parameters

url

Yar Server URL.

Return Values

Yar_Client instance.

Examples

Example #1 Yar_Client::__construct() example

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

The above example will output something similar to:

See Also

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/yar-client.construct.php