This constant returns a standard substitute character. You can use this character to mark parts of the text that you don’t want to replace. After the replacement process is done, you can then delete the placeholder character from the text.
$content = strtr($content, ['http://' => 'http:' . P . '//']); $content = strtr($content, [':/' => '<i class="icon icon-confused"></i>']); $content = strtr($content, [P => ""]); // Remove placeholder(s)!