我需要从容器内的所有图像中获取所有源值。我对此有一些困难。
请允许我解释一下这个过程。所有的数据都来自一个数据库。在后台,用户在文本区域内输入所有文本和图像。要将文本与图像分开,用户必须输入分页符。让我们去代码
while ($rowClients = mysql_fetch_array($rsClients)) {
$result = $rowClients['content'];
$resultExplode = explode('<!-- pagebreak -->', $result);
// with resultExplode[0] I get the code and with resultExplde[1] I get the image
// Now with I want to get only the src value from resultExplode[1]
我已经尝试过strip_tags
$imageSrc = strip_tags($resultadoExplode[1]);
但它不打印任何东西。
我找到了这篇文章,但没有成功。我停在第一个 print_r。
谁能帮我??
谢谢