//写入log txt
function log_write($indata) {
$cachefile = S_ROOT.'log_'.date("Y-m-d").'.txt';
if(!swritefile($cachefile,$indata)) {
exit("File: $cachefile write error.");
}
}
//头
$head="101 900000000 9000000001002221645J094101WESTERN CLEARING CUSTOMWESTERN CLEARING \n";
//内容
$five="5225SFS CHECK8886 888-642-4325 1680619534WEBACH DEBIT 100217100217 1900000000547279\n";
log_write($head.$five);现在只是显示头和内容
怎么把$five内容循环显示几遍?谢谢
function log_write($indata) {
$cachefile = S_ROOT.'log_'.date("Y-m-d").'.txt';
if(!swritefile($cachefile,$indata)) {
exit("File: $cachefile write error.");
}
}
//头
$head="101 900000000 9000000001002221645J094101WESTERN CLEARING CUSTOMWESTERN CLEARING \n";
//内容
$five="5225SFS CHECK8886 888-642-4325 1680619534WEBACH DEBIT 100217100217 1900000000547279\n";
log_write($head.$five);现在只是显示头和内容
怎么把$five内容循环显示几遍?谢谢
是要这样的效果吗?
$five="5225SFS CHECK8886 888-642-4325 1680619534WEBACH DEBIT 100217100217 1900000000547279\n";
$five=str_repeat($five,$n);
$five=str_repeat($five,$3);