src/Matchers/SpatialMatch.php
protected static function indexOf($string, $char)
    {
        $pos = @strpos($string, $char);

        return false === $pos ? -1 : $pos;
    }
protected static function indexOf($string, $char)
    {
        $pos = @strpos($string, $char);

        return false === $pos ? -1 : $pos;
    }
protected static function indexOf ( $ string , $ char ) { $ pos = @ strpos ( $ string , $ char ) ; return false === $ pos ? - 1 : $ pos ; }
Get the index of a string a character first.

@param string $string
@param string $char

@return int
Get the index of a string a character first .