摘要: $mtime = base_convert(1*60, 10, 16); //把10进制转化为16进制 $mtime = str_pad($mtime, 8, "0", STR_PAD_LEFT); //填充字符到固定长度,例如字符串长度不够就填充0,直至够8个字符长度 阅读全文