Docstoc

How to replace string with php

Document Sample
How to replace string with php Powered By Docstoc
					<?php

        $str = "Hello World";

        // Replace "World" with "RK" and assign in new variable
        $new_str = str_replace("World", "RK", $str);

        // will print "Hello RK".
        echo $new_str;

?>

				
DOCUMENT INFO
Shared By:
Stats:
views:11
posted:6/9/2012
language:
pages:1
Description: How to replace string with php