$app = 'App here';
$fn1 = function($var) use($app){
$fn2($var);
};
$fn2 = function($var) use($app){
echo $var;
};
$fn1('variable');
In the above example, I am trying to chain/forward multiple anonymous functions. However, at the below line I receive an error "Notice: Undefined variable: fn2"
$fn2($var)
How do I achieve the chaining of anonymous functions.