Sr. PHP Programmer Question:
What are rules for naming a PHP variable?
Answer:
Rules for naming a variable are following −
Variable names must begin with a letter or underscore character.
A variable name can consist of numbers, letters, underscores but you cannot use characters like + , - , % , ( , ) . & , etc
Variable names must begin with a letter or underscore character.
A variable name can consist of numbers, letters, underscores but you cannot use characters like + , - , % , ( , ) . & , etc
Previous Question | Next Question |
What is the purpose of break statement? | What PSR Standards do you follow? Why would you follow a PSR standard? |