I have this code to get all the img tag:
<?php
foreach($design_children as $design_child) {
echo preg_match_all('/<img[^>]+>/i', $design_child->post_content, $result);
echo $result[0];
break;
}
?>
but I keep getting the pattern matches number return to
my output like 2, 3 next to my images
how do I remove it ???!!
Remove the
echobeforepreg_match_all.