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;

?>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

To end a statement in PHP you will use what symbol?

A

semi-colon ( ; )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly