← All docs

unset()

Unsets the given variables.

unset()

function unset(mixed $var, ...$vars): void

Unsets the given variables.

Parameters:

  • $var (mixed)
  • ...$vars — variadic: collects excess arguments into $vars.

Returns: void

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

Internals

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