I am coding a bot for a game and I am now coding the handlers I want to call my array so it runs the function.
$handlers = array(
"x" => function()
);
function function($m)
{
echo "Var: " . $m . "
";
}
When I call handlers I tried it like this:
$handlers("x");
So how can I pass the variable to the function.