Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Find the position of the first occurrence of a substring in a string
<?php strpos(string $haystack, string $needle, int $offset = 0): int|false
<?php     private function classNameFromFileName(string $suiteClassFile): string

    {

        $className = basename($suiteClassFile, '.php');

        $dotPos = strpos($className, '.');



        if ($dotPos !== false) {

            $className = substr($className, 0, $dotPos);
<?php         $basename = basename($relativePath, '.php');



        $dotPos = strpos($basename, '.');



        if ($dotPos !== false) {

            $basename = substr($basename, 0, $dotPos);