how to define variable out of function php code example Example: php is variable a function is_callable($var) // returns true if variable is a function