hinom 5 Denunciar post Postado Outubro 19, 2008 Exercise 10 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 Compartilhar este post Link para o post Compartilhar em outros sites
hinom 5 Denunciar post Postado Outubro 19, 2008 Answer: B Explanation The function "Expenses()" was called but do not give print on return. However, in sequence, $Rent will be print. http://php.net/manual/functions.returning-values.php http://php.net/echo Compartilhar este post Link para o post Compartilhar em outros sites