function_exists

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Return true if the given function has been defined
function_exists(string $function): bool
        }




        if (! 
function_exists('socket_create')) {

            return;

        }