php function return more than one value 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 );
}