Conversion


StatementFunction

gmtime($x)

Converts a time returned by time to a nine-element array with the time corrected to Greenwich Mean Time.

hex($a)

Converts the string $a to a hexadecimal value.

localtime($x)

Converts a time returned by time to a nine-element array with the time corrected for the local timezone.

oct($a)

Converts the string $a to an octal value.

ord($a)

Returns the ASCII value of the first character of the string $a.

vec($v, $x, $y)

Treats the string $v as a vector of unsigned integers and returns $y bits offset $x bits from the beginning of $v.