if(!foo()) { exit; } function foo() { $variable = "hello"; return true,$variable; }
How can I return multiple items from the return line? and still keep true as the definitive answer?
You can only return one variable. So, you either need to return an array (and then break it out later), or set your other variables to be global so they are usable outside the function.