Join Up!
96806 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousmysql_change_usermysql_closenext
Last updated: Tue, 28 May 2002
view the printer friendly version or the printer friendly version with notes or change language to Czech | German | Spanish

mysql_character_set_name

(PHP 4 CVS only)

mysql_character_set_name -- Returns the name of the character set

Description

int mysql_character_set_name ( [resource link_identifier])

mysql_character_set_name() returns the default character set name for the current connection.

Esimerkki 1. mysql_character_set_name() example

<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
$charset = mysql_character_set_name($link);
printf ("current character set is %s\n", $charset);
?>

The above example would produce the following output:
latin1

See also: mysql_real_escape_string()

User Contributed Notes
mysql_character_set_name
add a note about notes
There are no user contributed notes for this page.
previousmysql_change_usermysql_closenext
Last updated: Tue, 28 May 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST