Supported Versions: PHP 8
Checks if a string ends with a given substring
<?php str_ends_with(string $haystack, string $needle): bool
<?php                 $s = ReflectionCaster::castFunctionAbstract($r, [], new Stub(), true, Caster::EXCLUDE_VERBOSE);

                $s = ReflectionCaster::getSignature($s);



                if (str_ends_with($identifier, '()')) {

                    $this->value = substr_replace($identifier, $s, -2);

                } else {

                    $this->value .= $s;
<?php             } else {

                $value = "\033[{$this->styles[$style]}m".$value;

            }

            if ($cchrCount && str_ends_with($value, $endCchr)) {

                $value = substr($value, 0, -\strlen($endCchr));

            } else {

                $value .= "\033[{$this->styles['default']}m";