<?php $str = "\xC2\xA1Hola!"; preg_match('/H/u', $str, $a_matches, PREG_OFFSET_CAPTURE); echo $str, mb_strlen(substr($str, 0, $a_matches[0][1]));
You have javascript disabled. You will not be able to edit any code.