×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

What will be the output of the following PHP code (4)?

30. What will be the output of the following PHP code?

<?php
$a = 5;
$b = 10;

print ("$a, $b+10");
?>
  1. 5, 10+10
  2. 5, 20
  3. 5 10+10
  4. 5 20

Answer: A) 5, 10+10

Explanation:

In the above PHP script, the print statement prints the values of the variables and text as it as. Thus, in the statement "$a, $b+10", "+10" will be printed as it as.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.