Developer Forums | About Us | Site Map
Search  
HOME > PHPMANUAL


Sponsors





Web Host
site hosted by netplex
Partners

Online Manuals

mysqli_character_set_name

(PHP 5 CVS only)

mysqli_character_set_name -- Returns the default character set for the database connection

Description

string mysqli_character_set_name ( resource link)

Returns the current character set for the database connection specified by the link parameter.

Example 1. Using the mysqli_character_set_name function

<?php
                                                     
    /* Open a connection */
    $link = mysqli_connect("localhost", "username", "password");
                                                                              
    /* Print current character set */
    $charset = mysqli_character_set_name($link);
    printf ("Current character set is %s\n",$charset);

 ?>

See also mysqli_real_escape_string().

Copyright 2004-2017 GrindingGears.com. All rights reserved. Site hosted by NETPLEX