Kmspico Download | Official KMS Activator Website [New Version 2024] Fast and Easy Converter YouTube to MP3 Online KMSAuto Net Activator Download 2024 Immediate Byte Pro Neoprofit AI Blacksprut without borders. Discover new shopping opportunities here where each link is an entrance to a world ruled by anonymity and freedom.

How to Get img src value with php?

Hello friends, today I will tell you through experts php tutorial how you can get img src values Using php program. So let’s try to understand step to step with example.


$html = '<img id="12" border="0" src="/images/img.jpg"
alt="Image" width="100" height="100" />';
$doc = new DOMDocument();
$xpath = new DOMXPath($doc);
$src = $xpath->evaluate("string(//img/@src)"); 
# "/images/img.jpg"