Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?php
$string='text text very long text <img height="233" width="156" alt="" src="http://example.com" style="float: right; margin: 5px; border: 1px solid black;"> asdasdasdasdasd adsad asd asd
<img height="233" width="156" alt="" src="http://example.com" style="float: right; margin: 5px; border: 1px solid black;">
';
$string=preg_replace('/(\<img height\=\"(.+?)\" width\=\"(.+?)\" alt\=\"\" src\=\"(.+?)\" style\=\"(.+?)\"\>)/i', '<a href="#">$1</a>', $string);
echo $string;
?>
MontefuckeR каза:preg_replace_all