I know in python we can do
Def foo():
return "foo", "bar", 10
a, b, c = foo()
In php I have to do
public function bar(){
return ["foo", "bar"]
}
$arr = bar()
$a = $arr[0]
$b = $arr[1]
Is there anyway I can assign multiple variables from function returns in php?