how to select image src using PHP
问题 So i have some images with several forms like this : <a href="" class="link-img" alt=""> <img editable="true" style="display: block; cursor: default;" class="main-image" width="538" height="auto" src="src" alt="large image"> </a> and like this : <a href="" class="link link-img"> <img src="src" style="width: 100%; display: block; cursor: pointer;" editable="true" class="main-image imageLink" width="" height="auto" alt=""> </a> so my code to select the src image is : $c = preg_replace('/<a href