<?php
$re1s = $db->query("select * from {$prefix}_resource where available=1 order by id desc limit 0,40");
while($re1r = $db->getarray($re1s))
{
$snum= substr($re1r['en_tel'],0,1);
if($snum==1)
{
$re1r['en_tel'] = preg_replace('/(1[358]{1}[0-9])[0-9]{4}([0-9]{4})/i','$1****$2',$re1r['en_tel']);
}
else
{
$re1r['en_tel'] = preg_replace('/(0[0-9]{2,3}[\-]?[2-9])[0-9]{3,4}([0-9]{3}[\-]?[0-9]?)/i','$1****$2',$re1r['en_tel']);
}
$link_list_array[] = smarrayall($re1r);
}
$smarty->assign('zshy', $link_list_array);
?>
联系客服