← 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

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

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

Internals

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