×
Home About Us Products Services News Free Scripts Contact
news php scripts and software

PHP example - How to translate certain characters in a string to other specified characters?


PHP - How to translate certain characters in a string to other specified characters?

You may use the special PHP function strtr
 
<?php
 
$myText="rsédfà";
 
$newText=strtr($myText,"éà","ea");
 
echo $newText;
 
?>
 
will display:
 
rsedfa

Category: PHP

 
<< Go back