php讀取出字符串中的img標籤中的圖片路徑 php 取出img標籤中的圖片路徑

//php讀取出字符串中的img標籤中的圖片路徑 $pageContents = '字符串,帶img標籤'; $pageContents = str_replace('\"','"',$pageContents); $reg = '/<img (.*?)+src=[\'"](.*?)[\'"]/i'; preg_match_all( $reg , $pageContents , $re
相關文章
相關標籤/搜索