Switch to: V11V10V9V8V7V6V5

valentina_get_proto_info()

Declaration

string valentina_get_proto_info ( [resource link_identifier] )

Parameters

NameDescription
link_identifierThe VServer connection. If the link identifier is not specified, the last link opened by valentina_connect() is assumed. If by chance no connection is found, an E_WARNING level warning is generated.

Description

Returns the version of the Valentina client-server protocol.

Return Values

The string containing protocol version.

Examples

Example 1.

<?php
$link    = valentina_connect('localhost', 'val_user', 'val_password');
$pv = val_get_proto_info($link);
 
echo "The current protocol version is: $pv\n";
?> 

The above example will output something similar to:

The current protocol version is: 2.0

See Also