function myFunction($param1, $param2){ // code block } t3lib_div::callUserFunction('myFunction', $param1, $param2);
function myFunction($param1, $param2){ // code block } $args = array('param1' => $value1, 'param2' => $value2); t3lib_div::callUserFunction('myFunction', $args);This example shows how to call a user-defined function named "myFunction" with an array of arguments using the t3lib_div callUserFunction method. The t3lib_div package is a part of the TYPO3 CMS library. It provides a set of utility functions and is used by the CMS core and extensions.