Beginner PHP
Q3 / 100

How do you declare a variable in PHP?

Correct! Well done.

Incorrect.

The correct answer is C) $name = "John"

C

Correct Answer

$name = "John"

Explanation

PHP variables start with a $ sign followed by the name. PHP is dynamically typed — no type declaration is needed.

Progress
3/100