Question: What will be the result of following operation?
Print 4<<5;
A
B
C
D
3
B
128
C
120
D
6
Note: Not available
$size=X (filename);
Which function will suitably replace “X”;
<?php
Function
Vec_add(&$a,$b)
{
$a[“x”]+=$b[“x”];
$a[“y”]+=$b[“y”];
$a[“z”]+=$b[“z”];
}
$a=array(x=>3,y=>2,z=>5);
$b=array(x=>9,y=>3,z=>-7);
Vec_add(&$a,$b);
Print_r($a);
?>
(
[x]=>9
[y]=>3
[z]=>-7
)
(
[x]=>3
[y]=>2
[z]=>5
)
(
[x]=>12
[y]=>5
[z]=>-2
)
$str1=’Have a’;
$str2=’Nice Day’;
The fastest way would be:
1 Class Insurance{ 2 Function clsName(){ 3 Echo get_class(this); 4 } 5 } 6 $cl=new Insurance(); 7 $cl->clsName(); 8 Insurance::clsNameWhich of the following lines should be commented to print the class name without errors?