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     public function getUnqualifiedForeignTableName()

    {

        $name     = $this->_foreignTableName->getName();

        $position = strrpos($name, '.');



        if ($position !== false) {

            $name = substr($name, $position + 1);
<?php             return $class;

        }



        $pos = strrpos($class, '\\' . Proxy::MARKER . '\\');



        if ($pos === false) {

            return $class;