Luminova Framework

PHP Luminova: Calling PHP Functions with the Luminova Helper

Last updated: 2026-11-28 20:57:12

Call a PHP function by name with `Luminova\Funcs\func()`, and organize application utilities in your own class.

func() resolves a PHP function by name, forwards its arguments, and returns the result. Define reusable application-specific static methods in app/Utils/Functions.php and call them through App\Utils\Functions.

use function Luminova\Funcs\func;

$normalized = func('strtoupper', 'ready');
echo $normalized; // READY

Function Definition

function func(string $function, mixed ...$arguments): mixed

Parameters:

ParameterTypeDescription
$functioncallable-stringFunction name.
$argumentsmixedArguments forwarded to the function.

Return:

mixed - Returns the function result.

Throws:

Use the dedicated classes for IP addresses, filesystem operations, and math helpers.