I have a PHP function and I want it to equal a variable. Here is the code:
You can't make a function equal a variable, but how about a variable that equals a function?
$ItsaFunction = function() { //Code goes here };
You could also do
function ItsaFunction() { //Code goes here } $ItsaFunction = ItsaFunction();