Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy. This forum is not for asking programming related questions.
I believe it would simply assign the return value of the function into the entry of the array. If the function does not return anything, I think PHP would simply assign the value "null".
That said, I believe if you had your function do something and return true, it would do it, return true, and you could easily use that to check if a set of functions worked.
I do not think, however, that you can trigger the function by calling the array; you'll simply find the result of the function from when it was assigned.
I believe it would simply assign the return value of the function into the entry of the array. If the function does not return anything, I think PHP would simply assign the value "null".
That said, I believe if you had your function do something and return true, it would do it, return true, and you could easily use that to check if a set of functions worked.
I do not think, however, that you can trigger the function by calling the array; you'll simply find the result of the function from when it was assigned.
Correct. To do this you would either need to quote the method calls and then when you need them use the array item as a variable function or eval the array item:
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Don't suppose it's possible to assign it the address of the function and then when you call the array you can pass the function parameters in since it has the memory address assigned to it and acts as the function as it would in c or is that too crunk?