Display Ads On This Blog

Banner Ads on scriptforphp.blogspot.com
Provides free php script for php developer.
Prix: € 5.00

Thursday, April 9, 2009

find and replace in php

$text = "Google and Yahoo is popular website";

$trans = array("Google" => "REPLACE_GOOGLE", "Yahoo" => "REPLACE_YAHOO");
$output = strtr($text, $trans);

echo $output;

0 comments:

Post a Comment