Created
December 5, 2013 22:46
-
-
Save bleeDev/7815410 to your computer and use it in GitHub Desktop.
prepareRow example
This file contains 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
<? | |
$link = $row->lnk; | |
if (strpos($link, 'www.facinghistory.org/') !== FALSE) { | |
$row->lnk = str_replace('www.facinghistory.org/', '', $row->lnk); | |
} | |
if (strpos($link, 'www.facing.org/') !== FALSE) { | |
$row->lnk = str_replace('www.facing.org/', '', $row->lnk); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment