= "\x80" && false !== $w && isset($pre_lead_comb[0]) && preg_match('/^\p{Mn}/u', $v)) { // Prevent leading combining chars // for NFC-safe concatenations. $v = $pre_lead_comb . $v; } } } reset($a[$i]); unset($a[$i]); } } }