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

$a = 20;

function myfunction($b) {
	$a = 30;
	
	global $a, $c;
	return $c = ($b + $a);
}

print myfunction(40) + $c;

?>
 

A 120 

B Syntax Error 

C 60 

D 70 

E 20 

+ Answer
+ Report
Total Preview: 1449

Copyright © 2024. Powered by Intellect Software Ltd