Question: Which of the following is a Ternary Operator?
A
B
C
D
E
F
&
B
=
C
:?
D
?:
E
+=
F
&&
Note: Not available
$a=10;
If($a>5 OR <15)
Echo “true”;
Else
Echo “false”
<?php
Var_dump(3*4);
?>
$Rent=250;
Function Expenses($Other)
{
$Rent=250+$Other;
Return $Rent;
}
Expenses(50);
Echo $Rent;
<?php
$fig=23;
$varb1=(real) $fig;
$varb2=(double) $fig;
$varb3=(decimal) $fig;
$varb4=(bool) $fig;
?>