$search and $replace are identical in this block; if ($this->normaliseLamAlef) { $search = ['لا', 'لآ', 'لأ', 'لإ']; $replace = ['لا', 'لآ', 'لأ', 'لإ']; $text = str_replace($search, $replace, $text); }
$search and $replace are identical in this block;
if ($this->normaliseLamAlef) {
$search = ['لا', 'لآ', 'لأ', 'لإ'];
$replace = ['لا', 'لآ', 'لأ', 'لإ'];
$text = str_replace($search, $replace, $text);
}