<?php $texthtml = '<p>test</p><br><p><img src="1.jpeg" alt=""><br></p><p><img src="2.png" alt=""><br><img src="3.png" alt=""></p>'; $search = 'img src="'; $pos = strpos($texthtml, $search)+ strlen($search); $lenght= strpos($texthtml, '"', $pos)-$pos; echo substr($texthtml, $pos, $lenght);
You have javascript disabled. You will not be able to edit any code.