//遮身份證號
function id_fmt($str1,$str2)
{
$str3 = "";
for($j=0;$j<strlen($str1);$j++)
{
if (substr($str1,$j,1)=="#")
{
$str3=$str3.substr($str2,$j,1); //取回傳資料
}
else
{ $str3=$str3.substr($str1,$j,1); }
}
return $str3;
//sample id_fmt('#####****#','G121258816');
}

arrow
arrow
    全站熱搜

    stockwfj3 發表在 痞客邦 留言(0) 人氣()