// 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 ““; } ?>
Archive for November, 2011
Symfony – we are not too late!!
Posted in Uncategorized on November 8, 2011 | Leave a Comment »