เหอๆ เขียนเองครับ มีอะไรเพิ่มเติมตรงไหนก็ไปเพิ่มกันเองเองครับ
เป็นการหา link ของภาพจาก html ครับ ในตัวแปร $string ก็ใส่เนื้อหา html ลงไปอันนี้ ก็แล้วแต่ว่าเราจะเอามายังไงครับ
code อาจดูแปลกใครเก่งก็เอาไป optimize เองครับ
[code]
$arrTmp='';
$format=":xxx:";
$string=' เนื้อหา html ครับ ';
$string=str_replace('<img', $format, $string);
$string=str_replace('<IMG', $format, $string);
$arrTmp=split($format,$string);
if(count($arrTmp)>=0){
foreach($arrTmp as $key=>$val){