← All docs

function_exists()

Returns true if the given function has been defined.

function_exists()

function function_exists(string $function): bool

Returns true if the given function has been defined.

Parameters:

  • $function (string)

Returns: bool

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

Internals

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