Multiple choice php

Variables always start with a ........ in PHP

  1. Pond-sign

  2. Yen-sign

  3. Dollar-sign

  4. Euro-sign

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In PHP, all variables must begin with a dollar sign ($). This distinguishes variables from language constructs and functions.

AI explanation

To answer this question, you need to understand how variables are declared in PHP.

In PHP, variables always start with a dollar sign ($) followed by the variable name. Therefore, the correct answer is C) Dollar-sign.