한국어 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 current CUBRID connection charset.

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\n", cubrid_client_encoding($con));

?>

See Also