Test.php
358 字节
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/9/2
* Time: 15:29
*/
namespace app\index\controller;
use think\Controller;
class Test extends Controller
{
public function index(){
$str = ",5A5A5A5A0000,00,1,";
print_r(crc16($str));
echo sprintf("%x",crc16($str));
return $this->fetch();
}
}