Complete the code to print the text "Hello, World!".
<?php [1] "Hello, World!"; ?>
The echo statement is used in PHP to output text to the screen.
Complete the code to print the value of the variable $name.
<?php $name = "Alice"; [1] $name; ?>
echo can print variables directly in PHP.
Fix the error in the code to correctly print "Age: 30".
<?php $age = 30; [1] "Age: " . $age; ?>
echo is the correct statement to print concatenated strings and variables.
Fill both blanks to print the sentence "Hello, John!" using variable $name.
<?php $name = "John"; [1] "Hello, " . [2] . "!"; ?>
echo prints the concatenated string and variable $name holds the name.
Fill both blanks to print the sentence "The total is 100;" using variable $total.
<?php $total = 100; [1] "The total is " . [2] . ; ?>
echo prints the concatenated string and variable $total. The semicolon ends the statement.
