Created
March 24, 2012 17:03
-
-
Save richard4339/2185163 to your computer and use it in GitHub Desktop.
str_replace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."; | |
print str_ireplace(array('lorem','ipsum'),array('<div>lorem</div>','<div>ipsum</div>'), $text); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment