Sr. PHP Programmer Question:
Download Job Interview Questions and Answers 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
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 Question | Next Question |
What is the purpose of break statement? | What PSR Standards do you follow? Why would you follow a PSR standard? |