Biz $string bir değişken var, onun gibi bazı metin içerir:
About 200 million CAPTCHAs are solved by humans around the world every day.
How can we get 2-3 last or first letters of each word (ki uzunluk en fazla 3 harfleri) ?
Ile eşleşen metin için onları kontrol edecek foreach():
if ('ey' is matched in the end of some word) {
replace 'ey' with 'ei' in this word;
}
Teşekkürler.