FUNDAMENTALS OF COMPUTER

WEB BROWSERS TECHNOLOGY

WHAT IS WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of these statements were the rule of declaring variable in PHP?
A
All variable names have a dollar sign ($) in front of them. This tells PHP that it is a variable name.
B
Variable names must begin with a letter or an underscore. They cannot begin with a number.
C
Variable names can be any length.
D
Variable names can include letters, numbers, and underscores only.
E
All of the above
Explanation: 

Detailed explanation-1: -A variable name must start with a letter or an underscore character ( ) A variable name cannot start with a digit. A variable name can only contain alpha-numeric characters and underscores ( a-z, A-Z, 0-9, and ) Variable names are case-sensitive (age, Age and AGE are three different variables)

Detailed explanation-2: -Q 19-Which of the following is correct about variable naming rules? A-Variable names must begin with a letter or underscore character.

Detailed explanation-3: -Following are the rules for declaring variables in PHP: A variable name cannot start with a number. A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and ) Variable names are case-sensitive ($age and $AGE are two different variables)

There is 1 question to complete.