mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
rename mysql-character-set-name to mysql-client-encoding
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@93438 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
df691a0126
commit
42379a79f4
1 changed files with 6 additions and 6 deletions
|
@ -1,28 +1,28 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.100 -->
|
||||
<refentry id="function.mysql-character-set-name">
|
||||
<refnamediv>
|
||||
<refname>mysql_character_set_name</refname>
|
||||
<refname>mysql_client_encoding</refname>
|
||||
<refpurpose>Returns the name of the character set</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>mysql_character_set_name</methodname>
|
||||
<type>int</type><methodname>mysql_client_encoding</methodname>
|
||||
<methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>mysql_character_set_name</function> returns the default
|
||||
<function>mysql_client_encoding</function> returns the default
|
||||
character set name for the current connection.
|
||||
</para>
|
||||
<example>
|
||||
<title><function>mysql_character_set_name</function> example</title>
|
||||
<title><function>mysql_client_encoding</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
|
||||
$charset = mysql_character_set_name($link);
|
||||
$charset = mysql_client_encoding($link);
|
||||
printf ("current character set is %s\n", $charset);
|
||||
?>
|
||||
]]>
|
Loading…
Reference in a new issue