This blog will let you know about the basics of PHP Variables along with some rules that you need to keep in mind while working with PHP Variables.
If you are a novice and want PHP Interview Questions, you can search it for online.
As the name defines, Variables are those that are commonly be written as the values or the symbols. The PHP Variables are used for managing and keeping the data store that can be used afterward in the program. The variable in PHP can be stored for memory addresses, characters, character string, numeric values and so on. These stored data can be later used anywhere while writing a program.
Before writing any program or dealing with PHP variables, there are certain rules or facts available that are mandatory to follow for the execution of the same.
Reasons for not starting a variable with a number
A variable cannot be started with a number because for every programming language, this is the set standard. If we start with an underscore or a letter, it becomes convenient for a user to identify if a token is starting with a numeric value.
Even if you think this is not your cup of tea, and you are looking for a career similar to this, you can refer to HTML Interview Questions.
Hey, I am John Davis and writing this article on PHP Variable to help you understand the same. If you like my article, please comment in the comment section.