<?php
$page = file_get_contents('https://www.chsi.com.cn/xlcx/bg.do?vcode=ADG5NY4KA5BGEDF2');
file_put_contents('result.html', $content);
preg_match_all('/\<span style="width:296px;"\>(.+)\<\/span\>/', $page, $university);
preg_match_all('/\<td\>\<span\>(.+)\<\/span\>\<\/td\>/', $page, $info);
if (isset($university[1][0]) && isset($info[1][3]))
return ['university' => $university[1][0], 'education' => $info[1][3]];
return false;
网友评论