Sr. PHP Programmer Question: Download Senior PHP Programmer PDF

What are rules for naming a PHP variable?

Tweet Share WhatsApp

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 PDF Read All 202 Senior PHP Programmer Questions
Previous QuestionNext Question
What is the purpose of break statement?What PSR Standards do you follow? Why would you follow a PSR standard?