Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Round fractions down
<?php floor(int|float $num): float
<?php             return $serverInfos;

        }



        $majorVersion = floor($this->conn->server_version / 10000);

        $minorVersion = floor(($this->conn->server_version - $majorVersion * 10000) / 100);

        $patchVersion = floor($this->conn->server_version - $majorVersion * 10000 - $minorVersion * 100);
<?php         }



        $majorVersion = floor($this->conn->server_version / 10000);

        $minorVersion = floor(($this->conn->server_version - $majorVersion * 10000) / 100);

        $patchVersion = floor($this->conn->server_version - $majorVersion * 10000 - $minorVersion * 100);



        return $majorVersion . '.' . $minorVersion . '.' . $patchVersion;
<?php         $majorVersion = floor($this->conn->server_version / 10000);

        $minorVersion = floor(($this->conn->server_version - $majorVersion * 10000) / 100);

        $patchVersion = floor($this->conn->server_version - $majorVersion * 10000 - $minorVersion * 100);



        return $majorVersion . '.' . $minorVersion . '.' . $patchVersion;

    }