Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Find the position of the last occurrence of a substring in a string
<?php strrpos(string $haystack, string $needle, int $offset = 0): int|false
<?php         } catch (\ReflectionException $e) {

            return;

        } finally {

            if (0 < $i = strrpos($this->value, '\\')) {

                $this->attr['ellipsis'] = \strlen($this->value) - $i;

                $this->attr['ellipsis-type'] = 'class';

                $this->attr['ellipsis-tail'] = 1;
<?php         if (false === $name) {

            $name = str_replace('\\', '/', $file);

            $name = substr($name, strrpos($name, '/') + 1);

        }



        $context = ['name' => $name, 'file' => $file, 'line' => $line];
<?php             $style .= sprintf(' title="%s"', empty($attr['dynamic']) ? 'Public property' : 'Runtime added dynamic property');

        } elseif ('str' === $style && 1 < $attr['length']) {

            $style .= sprintf(' title="%d%s characters"', $attr['length'], $attr['binary'] ? ' binary or non-UTF-8' : '');

        } elseif ('note' === $style && 0 < ($attr['depth'] ?? 0) && false !== $c = strrpos($value, '\\')) {

            $style .= ' title=""';

            $attr += [

                'ellipsis' => \strlen($value) - $c,