Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.4.0 |  CUBRID 8.4.1 | 



cubrid_client_encoding

Description

The cubrid_client_encoding function returns the charset configured in the currently connected CUBRID in string.

The cubrid_get_charset and cubrid_client_encoding functions are used interchangeably exception that an input argument can be omitted in the cubrid_client_encoding function. If the input argument is omitted, a connection identifier created most recently is handled as an input argument.

Syntax

string cubrid_client_encoding ([ resource $conn_identifier ])

  • conn_identifier : The CUBRID connection. If the connection identifier is not specified, the last connection opened is assumed.
Return Value
  • Success : A string that represents the CUBRID connection charset
  • Failure : FALSE
Example

<?php

    $con = cubrid_connect("localhost", 33000, "demodb");

    if (!$con)

    {

        die('Could not connect.');

    }

 

    printf("CUBRID current charset: %s ", cubrid_client_encoding($con));

?>

See Also