Signatur
time(): int
Beschreibung
Für Millisekunden: hrtime(true) / 1e6 (monoton) oder (int)(microtime(true) * 1000) (Wall-Clock).
Rückgabewert
Typ
int
Beschreibung
Timestamp.
Beispiele
Ablauf berechnen
<?php
$expires = time() + 3600; // in 1 Stunde