← All docs

get_resources()

Returns currently active resources, optionally filtered by type.

get_resources()

function get_resources(mixed $type = null): array

Returns currently active resources, optionally filtered by type.

Parameters:

  • $type (mixed), default null, optional

Returns: array

Availability

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

Internals

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