← All docs

dechex()

Converts an integer to its hexadecimal string representation.

dechex()

function dechex(int $num): string

Converts an integer to its hexadecimal string representation.

Parameters:

  • $num (int)

Returns: string

Availability

Compiled (AOT)Magician (eval)
AvailableNot available yet

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how dechex is implemented in the compiler, see the internals page.