Skip to content

Instantly share code, notes, and snippets.

@AmrMekkawy
Created June 21, 2016 13:38
Show Gist options
  • Save AmrMekkawy/2d725acc3893dd04374b48c1e7c848de to your computer and use it in GitHub Desktop.
Save AmrMekkawy/2d725acc3893dd04374b48c1e7c848de to your computer and use it in GitHub Desktop.
/**
* Remove "kasheda" character from Arabic text
*
* @author @AmrMekkawy
* @param string $text arabic text with (kasheda) character
* @return string arabic text without the (kasheda) character
*/
function remove_kasheda($text = '')
{
$text_without_kasheda = str_replace('ـ', '', $text);
return $text_without_kasheda;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment