HI, guys,
I was writing a function that should be return more than 3 variables. Here is my code.
//Function declaration
Function color($green,$yellow,$red) {
$green = “green”;
$yellow = “yellow”;
$red = “red”;
return $green,$yellow,$red;
}
//Calling Function
$green = color($green);
$yellow = color($yellow);
$red = color($red);
But I know this is not a function method to call multi variables.
Actually I am new in PHP and just I start to learn about it.
It will be really thankfully if any buddy guides me.