If you run this script in the browser, it should out put the following:
"My second PHP script!";
Few more things to remember about variables:
- They are case sensitive. This means $name and $naMe are two different variables
- They must always start with a letter or underscore
- They cannot start with numbers
- They can only contain alpha numeric values
PHP is a loosely type language and therefore you don't need to define the data types for variables. PHP will automatically convert the variable to the correct data type depending on the value assigned to it.