   #PHP Manual Improved MySQL Extension mysqli_change_user mysqli_close

   PHP Manual
   Prev  Next
   ______________________________________________________________________

                           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);
       echo "Current character set is $charset\n";
   ?>

   See also mysqli_real_escape_string().
   ______________________________________________________________________

   Prev               Home         Next
   mysqli_change_user  Up  mysqli_close
