retrun multiple values 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 );
}