Question: What will be the output of the following code?
$Rent = 250;
function Expenses($Other)
{
$Rent = 250 + $Other;
retum $Rent;
}
Expenses(50);
echo $Rent;
Question: Consider the following class:
1 class lnsurance
2 {
3 function clsName()
4 }
5 echo get_class($this);
6 }
7 }
8 $cl = new lnsurance();
9 $cl->clsName();
10 lnsurance::clsName();
Which of the following Lines should be commented to print the class name without errors?
A
Line 8 and 9
B
Line 10
C
Line 9 and 10
D
All the three lines 8,9 and 10 should be left as it is.
Question: In your PHP application you need to open a file. You want the application to issue a warning and continue execution, in case the file is not found. The ideal function to be used is: