MySQLi - Client Info



Syntax

string mysqli_get_client_info ( mysqli $link )

Definition and Usage

It is used to get MySQL client info

Example

Try out following example −

<?php
   $servername = "localhost:3306";
   $username = "root";
   $password = "";
   $dbname = "TUTORIALS";
   $conn = new mysqli($servername, $username, $password, $dbname);
   
   if ($conn->connect_error) {
      die("Connection failed: " . $conn->connect_error);
   } 
   echo "Database connected";
   printf("Client version: %s\n", mysqli_get_client_info());
   
   mysqli_close($conn);
?>

The sample output of the above code should be like this -

Database connected Client version: 
   mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $
mysqli_useful_functions.htm
Advertisements