Sr. PHP Programmer Question:

Download Job Interview Questions and Answers PDF

What are rules for naming a PHP variable?

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

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?