- substr: documentation ( source)
- var_dump: documentation ( source)
- preg_match: documentation ( source)
<?php
$subject = "Helló";
$pattern = '/(l|ó){3,3}/u';
preg_match($pattern, substr($subject,3), $matches, PREG_OFFSET_CAPTURE);
var_dump($matches);