public function getLowerVersion($old_version)
    {
        foreach ($this->getPhantomJsVersions() as $idx => $version) {
            // if $old_version is bigger than $version from versions array, return $version
            if (version_compare($old_version, $version) == 1) {
                return $version;
            }
        }
    }
public function getLowerVersion($old_version)
    {
        foreach ($this->getPhantomJsVersions() as $idx => $version) {
            // if $old_version is bigger than $version from versions array, return $version
            if (version_compare($old_version, $version) == 1) {
                return $version;
            }
        }
    }
public function getLowerVersion ( $ old_version ) { foreach ( $ this -> getPhantomJsVersions ( ) as $ idx => $ version ) { // if $old_version is bigger than $version from versions array, return $version if ( version_compare ( $ old_version , $ version ) == 1 ) { return $ version ; } } }
Returns a lower version for a version number.

@param string $old_version Version number
@return string Lower version number.
Returns a lower version for a version number .