Menu
Is it possible to store a function itself NOT the value that it returns in a variable?
I’m trying to create an array I can use to formulate insert statements, but I need to calculate the data for the insert statements. I don’t want to have to edit 3 places when I want to add a field or change a calculation.
Something like this:
[code=php]
$columns = array
(
[FIELD1] => CALCULATION / FUNCTION,
[FIELD2] => CALCULATION / FUNCTION
);
Any ideas?