strtr

PHP 4, PHP 5, PHP 7, PHP 8
strtr - Translate characters or replace substrings
Strtr Online Tool
Manual
Code Examples

Example #1 strtr example with two arguments

Result: hello all, I said hi
PHP Version:

Example #2 strtr example

PHP Version:

Example #3 strtr behavior comparison

Result: 1001 ba01
PHP Version:


Example #4 of strtr

PHP Version:


Function strtr:

Strings Functions

Most used PHP functions