PHP Using Str_Replace() – String Function

<?
print str_replace('{class}',$my_class,
                  '<span class="{class}">A<span>
                   <span class="{class}">B</span>');
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.