PHP将html表格转化为数组
/**
* 将html表格转化为数组
* @param $table Html表格字符串
* @return mixed 数组
*/
public function get_td_array($table) {
$table = preg_replace("'<table[^>]*?>'si","",$table);
$table = preg_replace("'<tr[^>]*?>'.
转载
2020-07-07 13:47:18 ·
919 阅读 ·
0 评论