How can I set a default variable to a function in PHP? In python, it would look like this:
def fun(con = predefined):
I've tried the following to no avail:
function fun($con = $GLOBALS['con']){}
In this instance, as you can see, I would like to set the value to the definition of a global variable.