is_php()

is_php($version)

Parameters:
  • $version (string) – Version number
Returns:

TRUE if the running PHP version is at least the one specified or FALSE if not

Return type:

bool

Determines if the PHP version being used is greater than the supplied version number.

Example:

if (is_php('5.3'))
{
        $str = quoted_printable_encode($str);
}

Returns boolean TRUE if the installed version of PHP is equal to or greater than the supplied version number. Returns FALSE if the installed version of PHP is lower than the supplied version number.

doc_CodeIgniter
2016-10-15 16:32:27
Comments
Leave a Comment

Please login to continue.