Feeds:
Posts
Comments

Archive for November, 2011

// extract image $strImg = ”; if (stripos($item['content'], ‘ $imgsrc_regex = ‘#]*src\s*=\s*(["\'])(.*?)\1#im’; preg_match($imgsrc_regex, $item['content'], $matches); if (is_array($matches) && !empty($matches)) { if (isset($matches[2])) { $strImg = $matches[2]; } } }// replace image $regex1 = “/\]*>/”; $item['content'] = trim(preg_replace ( $regex1, ”, $item['content'] )); ?> if (isset($strImg)) { echo ““; } ?>

Read Full Post »

Follow

Get every new post delivered to your Inbox.