get_resources()
function get_resources(mixed $type = null): array
Returns currently active resources, optionally filtered by type.
Parameters:
$type(mixed), defaultnull, optional
Returns: array
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/core/get_resources.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how get_resources is implemented in the compiler, see the internals page.