The strtr function replaces characters in a string.
$sentence = 'The quick brown fox';
$sentenceStrtr = strtr($sentence, 'quick', '1234');
echo $sentenceStrtr;
// The 1234 brown fox
The strtr function replaces characters in a string.
$sentence = 'The quick brown fox';
$sentenceStrtr = strtr($sentence, 'quick', '1234');
echo $sentenceStrtr;
// The 1234 brown fox