1. How do we include a PHP statement in an HTML file? php $a=10 ?> 2
Posted: Sun May 15, 2022 8:46 am
1. How do we include a PHP statement in an HTML file?
<?php $a=10 ?>
<? php $a=10 ?>
<! php $a=10 !>
<! php $a=10 !>
2. What symbols can be used for PHP comment?
//
/* */
#
All of the above.
3. What is the word "style" called in <body
style=’color : green’>?
Entity
Attribute
CSS property
None of the above
4. Which of the following PHP statement can appear in an
if-statement if $variable is a string of characters, e.g.,
$variable contains “Test” prior to the if-statement?
if($variable = "test") echo "OK";
if($variable == "test") echo "OK";
<?php $a=10 ?>
<? php $a=10 ?>
<! php $a=10 !>
<! php $a=10 !>
2. What symbols can be used for PHP comment?
//
/* */
#
All of the above.
3. What is the word "style" called in <body
style=’color : green’>?
Entity
Attribute
CSS property
None of the above
4. Which of the following PHP statement can appear in an
if-statement if $variable is a string of characters, e.g.,
$variable contains “Test” prior to the if-statement?
if($variable = "test") echo "OK";
if($variable == "test") echo "OK";