Home >> PHP >> strtr() function in PHP

strtr() function in PHP

The strtr() function used for translates some characters in a string.

Syntax

strtr(string,from,to)

Example

echo strtr("Hilla Dear","ia","eo");

Output

Hello Deor

Post Your Comment

Next Questions
substr() function
substr_compare() function
substr_count() function
substr_replace() function
trim() function
ucfirst() function
ucwords() function
wordwrap() function
array
Array type
Numeric array
Associate array
Multidimensional array
array() function
array_change_key_case() function
array_chunk() function
array_combine() function
array_count_values() function
array_diff() function
array_diff_assoc() function
array_diff_key() function
array_diff_uassoc() function
array_diff_ukey() function
array_fill() function
array_filter() function

Copyright ©2022 coderraj.com. All Rights Reserved.