My site allows users to register with Arabic / English names
I am trying to convert the username and last name of the user to lowercase
I use this function
$first_name = strtolower ( $_POST['first_name'] );
if I try to put the Arabic name, I get this code (ø¹ù "ø§ø¡)
try it yourself.
<?
echo 'مصر';
echo strtolower('مصر');
?>
? >
source
share