Guest User

Untitled

a guest
Jan 5th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. if (strlen($string) > 500)
  2. {
  3. $stringCut = substr($string, 0, 500);
  4.  
  5. $string = substr($stringCut, 0, strrpos($stringCut, ' ')).'... <a href="#" onclick="showAjaxModal('.base_url().'index.php?modal/popup/readmore/' . $row['categories_id'].')"> ...Read More </a> ' ;
  6.  
  7. }
  8. echo $string;
  9. ?>
Add Comment
Please, Sign In to add comment