
In PHP a variable declared with $ symbol. PHP variable Sart with $ symbol and followed by the variable name. In variable must have a string, and number value. String value must be enclosed by double quote. Variable names must be Case sensitive.
Rules for Declare the PHP variable:
The Variable must be started with $ sign.
The Variable name must be case sensitive.
The Variable name must be start with letters and underscore character.
The Variable name not start with number.
The Variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )
The Variable names are case-sensitive ($name and $NAME are two different variables)
Example For PHP:
<?php $mySite = "LabW3"; echo "Learn Coding on @mySite"; ?>