Warning: date(): Invalid date.timezone value 'HKT', we selected the timezone 'UTC' for now. in /home/mrgcom/public_html/catalog/controller/common/footer.php on line 48 php正則表達

The One 专一

php正則表達

ex1:獲取<img>標籤的地址

$img="<img href="http://127.0.0.1/img/1.jpg"/>";

preg_match("/<img.*srcs*=s*["|']?s*([^>"'s]*)/i",$img,$arr)

Powered By 爱你若晴天
身体健康 © 2017 粤ICP备14081548号-1

Article

Shopping

Search

Me