|
PHP5中文手册
mysqli_set_charsetmysqli->set_charset(PHP 5 >= 5.0.5) mysqli->set_charset — Sets the default client character set 说明Procedural style:
bool mysqli_set_charset
( mysqli $link
, string $charset
)
Object oriented style (method): mysqli
bool set_charset
( string $charset
)
Sets the default character set to be used when sending data from and to the database server. 参数
返回值如果成功则返回 TRUE,失败则返回 FALSE。 注释
范例Example#1 Object oriented style
<?php Example#2 Procedural style
<?php 上例将输出:
|