PHP: Data Types

Scalar Types

TypeDescription
Boolean
Integer
Float
String

Integer

Number FormatDescriptionExample
DecimalNormal decimal numbers86
BinaryBinary numbers start with 0b or 0B (Zero then capital or small “B”)0b1010110
OctalOctal numbers start with 0(Zero)0126
HexadecimalHex numbers start with 0x or 0X (Zero and then capital or small “X”)0x56

Composite Types

TypeDescription
Array
Object

Leave a Comment


The reCAPTCHA verification period has expired. Please reload the page.