In PHP, variables start with $ followed by the name of the variable. You don’t need any command or keyword for declaring variables in PHP.
Like in any other programming language, there are rules for declaring variables in PHP. Variables in PHP must start with a letter or an underscore sign. They can’t start with a number. A PHP variables can contain only letters, numbers and/or underscores (alphanumeric characters). They are also case sensitive.
Although PHP is not the most powerful programming language, it is one of the most widely used for creating dynamic web pages. That’s because it is supported by most web hosting platforms (if not all). Here are the benefits of learning and using PHP for creating dynamic web pages.