我有一个内容
through the pictures he captures, he expresses what he feels about a subject, be it a wedding shoot or couple’s portraits, by capturing emotions in its true essence. Pre-wedding shoots have unveiled to him numerous love stories in unimaginable ways. Every wedding is a different story yet with the same energy, colors and happy spirits all over. What he loves about all this is that he can help people beautify their memories and capture the best ones.</p>
<p><strong>Contact details:</strong></p>
<p>Mobile: +91 90496 80434<br>Email: <a href="mailto:ashishlangade@gmail.com">ashishlangade@gmail.com</a><br>Facebook page: <a href="https://www.facebook.com/AshishLangadePhotography">www.facebook.com/AshishLangadePhotography</a><br>Instagram page: <a href="https://www.instagram.com/3three.little.words/?hl=en">www.instagram.com/3three.little.words</a></p>
<p> </p>
<!-- wp:imagely/nextgen-gallery -->
[ngg src="galleries" ids="568" display="basic_thumbnail"]
<!-- /wp:imagely/nextgen-gallery -->从该内容中,我只需要值568。
发布于 2020-04-28 12:42:31
您可以使用domdocument解析html。或者你可以用正则表达式提取它。
preg_match ( '/ids="(\d+)"/', $subject $aOut);
var_dump($aOut);正如kerbholz所说,除非您将这些数据作为字符串使用并试图解析它,否则您应该已经拥有了id。
https://stackoverflow.com/questions/61480333
复制相似问题