In PHP, a variable name must start with a ______ followed by the name of the variable.

  • Dollar sign ($)
  • Letter (a-z)
  • Underscore (_)
  • Number (0-9)
In PHP, variable names must start with a dollar sign ($), followed by the name of the variable. The variable name is case-sensitive. Variable names follow certain rules: they must begin with a letter or the underscore character; they can't begin with a number; they can contain alpha-numeric characters and underscores. Learn more: https://www.php.net/manual/en/language.variables.basics.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *