Start · Sprachen · PHP · Referenz · PHP_INT_SIZE

PHP_INT_SIZE

Konstante

Anzahl Bytes eines Integers auf der aktuellen Plattform — 8 auf 64-Bit, 4 auf 32-Bit.

seit PHP 4.4.0 Kategorie: math

Signatur

const PHP_INT_SIZE

Beschreibung

Für Portabilität von Bit-Ops.

Rückgabewert

Typ
int
Beschreibung
Bytes.

Beispiele

Basis

<?php

echo PHP_INT_SIZE; // 8