Multiple choice php

All variables in PHP start with which symbol?

  1. !

  2. $
  3. &

  4. #

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

PHP variables always begin with the dollar sign ($). This is a fundamental syntax rule in PHP that distinguishes variables from other language elements. The other symbols (!, &, #) have different purposes in PHP - ! is for negation, & for references, and # for comments.