Bird
0
0

Which symbol is NOT used to start a comment in PHP?

easy📝 Conceptual Q1 of 15
PHP - Basics and Execution Model
Which symbol is NOT used to start a comment in PHP?
A//
B#
C/*
D$$
Step-by-Step Solution
Solution:
  1. Step 1: Identify valid comment starters in PHP

    PHP uses //, # for single-line and /* for multi-line comments.
  2. Step 2: Check each option

    $$ is not a comment symbol; it's used for variable variables in PHP.
  3. Final Answer:

    $$ is not a comment symbol -> Option D
  4. Quick Check:

    Comment symbols = C [OK]
Quick Trick: Comments start with //, #, or /* in PHP [OK]
Common Mistakes:
  • Confusing $$ with comment syntax
  • Thinking $ starts a comment
  • Mixing PHP variables with comments

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PHP Quizzes