Switch to: V11V10V9V8V7V6V5

valentina_client_encoding()

Declaration

string valentina_client_encoding ( [resource link_identifier] )

Parameters

Name Description
link_identifier The Valentina Server 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

Always returns string containing UTF-8 as far as Valentina for PHP works with this encoding.

Return Values

Returns the default character set name for the current connection.

Examples

Example 1.

<?php
$link    = valentina_connect('localhost', val_user', val_password');
$charset = valentina_client_encoding($link);
 
echo "The current character set is: $charset\n";
?> 

The above example will output something similar to:

The current character set is: UTF-8

See Also