how to return 2 value in if statement in php code example
Example: php function return multiple values
// Function to swap two numbers
function swap( $x, $y ) {
return array( $y, $x );
}
// Function to swap two numbers
function swap( $x, $y ) {
return array( $y, $x );
}