/
Callable Functions

Callable Functions

PHPv8+ allows for dynamically generated callable functions. This syntax allows you to modularize your Custom Logic.'

Example:

This example defines and stores a new function into the $fnctName variable. This function-variable can then be invoked later using the call notation.

$fnctName = function( $parameter1, $parameter2, // ... more params if needed ){ // Do something in the function // with the parameters }; $fnctName->call($this, $param1, $param2);

 

Related content

Creating Inbound/Outbound Files
Creating Inbound/Outbound Files
Read with this
(2024.2) Callable Functions
(2024.2) Callable Functions
More like this
Querying Data
Querying Data
Read with this
(v1) Allowed Functions in Custom Logic
(v1) Allowed Functions in Custom Logic
More like this
Validation: Errors and Warnings
Validation: Errors and Warnings
Read with this
(v1) .Allowed Functions in Custom Logic v2022.2
(v1) .Allowed Functions in Custom Logic v2022.2
More like this