Skip to content

Instantly share code, notes, and snippets.

@bleeDev
Created December 5, 2013 22:46
Show Gist options
  • Save bleeDev/7815410 to your computer and use it in GitHub Desktop.
Save bleeDev/7815410 to your computer and use it in GitHub Desktop.
prepareRow example
<?
$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