On 30 March 2010 14:16, Andre Polykanine <an...@oire.org> wrote:

> I need a quoted_printable_encode function but it's available only
> since PHP 5.3. How do I redefine that function only if PHP version is
> lower than 5.3?

function_exists().

if (!function_exists('myfunc')) {
    function myfunc() {
        ;
    }
}

http://uk3.php.net/function_exists

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to