Commit c7192c7b authored by jiangkebao's avatar jiangkebao

添加图片处理

parent 36e52e08
......@@ -787,3 +787,12 @@ if (!function_exists('str_replace_first')) {
return $subject;
}
}
if (!function_exists('get_images_url')) {
function get_images_url($str)
{
preg_match('/<img.+src=\"?(.+\.(jpg|gif|bmp|bnp|png))\"?.+>/i',$str,$match);
return $match;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment