SyntaxFix
Write A Post
Hire A Developer
Questions
Easy and better than str_replace:
str_replace
<?php $arr = array( "http://" => "http://www.", "w" => "W", "d" => "D"); $word = "http://desiweb.ir"; echo strtr($word,$arr); ?>
strtr PHP doc here
strtr