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                 if (\function_exists('filter_var')) {

                    $filtered = \filter_var($hexNumberString[1], \FILTER_VALIDATE_INT, \FILTER_FLAG_ALLOW_HEX);

                    if ($filtered !== false) {

                        $content = $filtered;
<?php     protected function validEncoding($value)

    {

        static $encodings;

        if (isset($encodings) === false && \function_exists('mb_list_encodings')) {

            $encodings = \mb_list_encodings();

        }