Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么东西可以使 PHP CRC32 函数的返回长度发生变化吗?
谢谢!
不,根据定义,CRC32 具有 32 位。
你只能改变它的表现形式。例如,虽然它可以用 4 个 8 位字节表示(因此适合 PHP int),但您可能希望在字符串中表示以 10 为底的数字,然后它可以有 10 个字符(无符号),因为2^32-1 是 4294967295。