PHP Data & Structure Flashcards
1
Q
Create a PHP Code Block with a Variable called “name” inside of that block and set it equal to “Mike”.
Then echo Mike’s Name To The Screen.
A
<?php </p>
$name = “Mike”;
echo $name;
?>
2
Q
To end a statement in PHP you will use what symbol?
A
semi-colon ( ; )
3
Q
T/F: Variables in PHP are represented by a dollar sign followed by the name of the variable. The variable name is case-sensitive.
A
True