獲取編輯器/富文本第一張圖爲縮略圖

<?php  // 獲取富文本第一張圖爲縮略圖 $content = $_POST["editor"];//接收編輯器name的參數 if (preg_match_all("/(src)=([\"|']?)([^ \"'>]+\.(gif|jpg|jpeg|bmp|png))\\2/i", $content, $matches)) { $str=$matches[3][0]; preg_match
相關文章
相關標籤/搜索