摘要:
View Code 1 <?php 2 //因为前后台都要用到,所以放在supermario文件夹下方便重用 3 4 /** 5 * 喔~可爱滴小数点~喔~可爱滴千位数~ 6 * 如果位数超过4位,则将第3位前增加, 7 * @param int $gold 8 * @return string 9 */ 10 function showGold($gold) { 11 return number_format($gold); 12 } 13 14 /** 15 * 页面压缩输出 16 */ 17 function ob_callback($b... 阅读全文
摘要:
if(!function_exists('read_pdf')) { function read_pdf($file) { if(strtolower(substr(strrchr($file,'.'),1) != 'pdf')) { echo '文件格式不对'; return; } if(!file_exists($file)) { echo '文件不存在'; return; } header('Content-type: application/pdf'); header('filena 阅读全文