Variable in php

In php variable name is preceded by dollar sign($), for variable name letters, numbers and underscore ( _ ) can be used but space in variable name is not allowed. There is an example of some legal variables:


<?php
$a=1;
$name="Marry";
$amount=2.36;
print $a; // 1

print $name; // Marry

print $amount; // 2.36

?>