php正则匹配video 中或者img的宽度和高度。

            preg_match('/\bwidth="(\d+)"/',$contentimages, $vwith);//

            preg_match('/\bheight="(\d+)"/',$contentimages, $vheight);//
 

 

posted @ 2018-01-09 18:03  xiager  阅读(574)  评论(0编辑  收藏  举报