PHP Objective type questions | What will be the output of the following code?

$Rent = 250;
function Expenses($Other)
{
$Rent = 250 + $Other;
return $Rent;
}
Expenses(50);
echo $Rent;
a. 300
b. 250
c. 200
d. Program will not compile

Ans: b

0 comments:

Post a Comment

Blogger news