What will be the output of the following PHP code? [code] <?php $a = 1; if (echo $a) print "True"; else print "False"; ?> [/code]

Nguyễn Hào

New member
What will be the output of the following PHP code?
Code:
<?php
$a = 1;
if (echo $a)
    print "True";
else
    print "False"; 
?>
A. true
B. false
C. error
D. no output
 

Tìm kiếm

Back
Top