public static function versionGuard($reqVersion, $errMsg='')
    {
        if (version_compare(PHP_VERSION, $reqVersion) == -1) 
        {
            if ($errMsg == '')
            {
                $errMsg = 'Required PHP version: ' . $reqVersion . 
                                ', current Version: ' . PHP_VERSION;    
            }
            
            die($errMsg); 
        }
    }
public static function versionGuard($reqVersion, $errMsg='')
    {
        if (version_compare(PHP_VERSION, $reqVersion) == -1) 
        {
            if ($errMsg == '')
            {
                $errMsg = 'Required PHP version: ' . $reqVersion . 
                                ', current Version: ' . PHP_VERSION;    
            }
            
            die($errMsg); 
        }
    }
public static function versionGuard ( $ reqVersion , $ errMsg = '' ) { if ( version_compare ( PHP_VERSION , $ reqVersion ) == - 1 ) { if ( $ errMsg == '' ) { $ errMsg = 'Required PHP version: ' . $ reqVersion . ', current Version: ' . PHP_VERSION ; } die ( $ errMsg ) ; } }
Implement a version guard. This will throw an exception if we do not
have the required version of PHP that is specified.
@param String $reqVersion - required version of php, e.g '5.4.0'
@throws an exception if we do not meet the required php
version.
Implement a version guard . This will throw an exception if we do not have the required version of PHP that is specified .