mysql_get_server_info()

It returns server info

Example

<?php
mysql_connect(“localhost”, “root”, “phpcode”) or die(mysql_error());
echo mysql_get_server_info();
?>

Output

5.1.61-0ubuntu0.10.10.1