美文网首页
PHP 疑难杂症

PHP 疑难杂症

作者: Nomandia | 来源:发表于2019-06-10 15:45 被阅读0次

PHP 使用unsigned bigint

PHP 使用unsigned bigint作为主键时应该使用PHPx64位的,否则会丢失精度。使用x64后 PHP_INT_MAX=9223372036854775807,约21位数字。另外,不要尝试 number_format 这会导致精度丢失(长度在18位左右)

PHP cookie 无法删除

诡异,所以用暴力。直接 setcookie('键名', null, 0); 即可,不要纠结domain或path。

相关文章

网友评论

      本文标题:PHP 疑难杂症

      本文链接:https://www.haomeiwen.com/subject/dbbzxctx.html