← All docs

serialize()

Generates a storable representation of a value.

serialize()

function serialize(mixed $value): string

Generates a storable representation of a value.

Parameters:

  • $value (mixed)

Returns: string

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

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