Question:What is the output of the following function?
<?php

function &find_variable(&$one, &$two, &$three) {
	
	if($one > 10 && $one < 20) return $one;
	if($two > 10 && $two < 20) return $two;
	if($three > 10 && $three < 20) return $three;
}

$one = 2;
$two = 20;
$three = 15;

$var = &find_variable($one, $two, $three);

$var++;

print "1: $one, 2: $two, 3: $three";

?>
 

A 1: 2, 2: 20, 3: 15 

B 1: 3, 2:21, 3:16 

C 1: 2, 2:21, 3:15 

D 1: 3, 2: 20, 3: 15 

E 1: 2, 2: 20, 3: 16 

+ Answer
+ Report
Total Preview: 1156

Copyright © 2024. Powered by Intellect Software Ltd