Sr. PHP Programmer Question:
Download Questions PDF

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

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
What is the purpose of break statement?What PSR Standards do you follow? Why would you follow a PSR standard?