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