Czy istnieje lepszy sposób na wyświetlenie informacji o wersji MySQL bez tego długiego ciągu znaków ID?
<?php
/**Created by PhpStorm.*/
echo 'Current PHP version: ' . phpversion();
echo "<br>";
function getMySQLVersion() {
$output = shell_exec('mysql -V');
preg_match('@[0-9]+\.[0-9]+\.[0-9]+@', $output, $version);
return $version[0];
}
print mysql_get_client_info();