PHP converts a signed integer to an unsigned integer. This article describes how to convert signed integers to unsigned integers in PHP. the conversion method is simple, this document describes how to convert signed integers to unsigned integers in PHP.
This article mainly introduces how to convert signed integers to unsigned integers in PHP. the conversion method is very simple. This article provides the conversion method directly. For more information, see
In a short address project, when the ID exceeds 2147483647, the ing ID of a six-character short address is converted into a signed integer.
The code is as follows:
ID> six-character> ing ID
ID: 2147483644> TfffVQ> 2147483644
ID: 2147483645 & gt; efffVQ & gt; 2147483645
ID: 2147483646> NfffVQ> 2147483646
ID: 2147483647> ffffVQ> 2147483647
ID: 2147483648> nnnnnu>-2147483648
ID: 2147483649> dnnnnu>-2147483647
ID: 2147483650> rnnnnu>-2147483646
You need to convert signed integer to unsigned integer: (float) sprintf ('% u', $ id)
This article describes how to convert signed integers to unsigned integers in PHP. the conversion method is very simple. This article describes how to convert signed integers directly...