faysalmirmd

Image from Intotext/Fulltext joomla-com_content

Nov 7th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. $img_temp    = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $articletemp->introtext,$matches)?true
  2.                                   :preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $articletemp->fulltext,$matches);
  3.                     $imgpath     =  ($img_temp? $matches[1][0]:'');
Advertisement
Add Comment
Please, Sign In to add comment