COMPUTER APPLICATIONS
DATABASE MANAGEMENT SYSTEMS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
What will be the output of thefollowing PHP code?<?php$num = 1;$num1 = 2;print $num . “+”. $num1 ;?>
|
3
|
|
1+2
|
|
1.+.2
|
|
ERROR
|
Explanation:
Detailed explanation-1: -Basic PHP Syntax A PHP script can be placed anywhere in the document. The default file extension for PHP files is “ .php “. A PHP file normally contains HTML tags, and some PHP scripting code.
Detailed explanation-2: -Which of the following PHP statements will output Hello World on the screen? Explanation: echo(), print() and printf() all three can be used to output a statement onto the screen.
There is 1 question to complete.