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