Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Find the position of the first occurrence of a substring in a string
strpos(string $haystackstring $needleint $offset 0): int|false
    protected function extractQueryString($path)

    {

        if ((
$queryPosition strpos($path'?')) !== false) {

            return [

                
substr($path0$queryPosition),

                
substr($path$queryPosition),
            return $subject;

        }



        
$position strpos($subject$search);



        if (
$position !== false) {

            return 
substr_replace($subject$replace$positionstrlen($search));
    public function hasHintInformation($name)

    {

        return 
strpos($name, static::HINT_PATH_DELIMITER) > 0;

    }