function_exists

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Return true if the given function has been defined
<?php function_exists(string $function): bool
<?php use QuickRoute\Route;



if (!function_exists('QuickRoute\Tests\printer')) {

    function printer(): void

    {