$matches = array();
preg_match_all(‘/<img.+src=[\'“]([^\'“]+)[\'“].*\/>/i’ , $article->text , $matches);if($matches[0][0]){
echo $matches[0][0];
}
$matches = array();
preg_match_all(‘/<img.+src=[\'“]([^\'“]+)[\'“].*\/>/i’ , $article->text , $matches);if($matches[0][0]){
echo $matches[0][0];
}
Вашият коментар