| 2 comments ]

What is the output of the following?


<?php

$a = 010;
$b = 0xA;
$c = 2;

print $a + $b + $c;

?7gt;
20
22
18
$a is an invalid value
2

Ans : 22


Please answer through the comments I will make it publish on blog..............

2 comments

nkhanchandani said... @ Sunday, April 27, 2008 at 3:42:00 PM GMT+1

20

Unknown said... @ Thursday, May 15, 2008 at 2:42:00 PM GMT+1

the answer is 20

Post a Comment

Please put your comments here. your questions, your suggestions, also what went wrong with me.