private static function findQ($str, $offset = 0, $no = 0)
{
$found = strpos($str, '?', $offset);
if ($no == 0 || $found === false) {
return $found;
}
return self::findQ($str, $found + 1, $no - 1);
}