In word that begin with consonants cluster or consonant I need to put consonants (cluster) at the end of the word using regexp.
For example: bbber-> er-bbb
, bert->ert-b
, avokado->avokado
//if word begins with consonant letter
if (preg_match("/\b[b-df-hj-np-tv-xz]/i", $word)) {
return preg_replace(??????);
}