English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

What will be the output of the following PHP code? <?php $a = “ ”; if ($a) print “all”; else print “some”; ?> - Computer Applications

Advertisements
Advertisements

Question

What will be the output of the following PHP code?

<?php
$a = “ ”;
if ($a)
print “all”;
else
print “some”;
?>

Options

  • all

  • some

  • error

  • no output

MCQ
Advertisements

Solution

error

shaalaa.com
Control structures in PHP
  Is there an error in this question or solution?
Chapter 6: PHP Conditional Statements - Evaluation - PART – I [Page 110]

APPEARS IN

Samacheer Kalvi Computer Applications [English] Class 12 TN Board
Chapter 6 PHP Conditional Statements
Evaluation - PART – I | Q 6. | Page 110
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×