Interview QuestionsCategory: PHPWhat are rules we have to follow while naming a PHP variable?
bestonetechnologies Staff asked 1 year ago

What are rules we have to follow while naming a PHP variable?

1 Answers
bestonetechnologies Staff answered 1 year ago

-> Name of the variable must begin with a letter or underscore character.
-> Name of variable can consist of numbers, letters, underscores but we cannot use characters like + , – , % , ( , ) . & , etc