Articles → PHP → Str_Replace Function In PHP
Str_Replace Function In PHP
Purpose
Example
<!DOCTYPE html>
<html>
<body>
<!-str_replace example->
<?php
echo str_replace("world","planet","Earth is the 3rd world after Mercury and Venus!");
?></body>
</html>
Output
Click to Enlarge