Created
June 21, 2016 13:38
-
-
Save AmrMekkawy/2d725acc3893dd04374b48c1e7c848de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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