代码如下:
function get_all_url($code){ preg_match_all('/"' ]+)["|']?s*[^>]*>([^>]+)/i',$code,$arr); return array('name'=>$arr[2],'url'=>$arr[1]); }?>
上一篇:利用php怎么实现一个快速排序算法
下一篇:使用php怎么将HTML表格中的数据转换为数组