The symbol $

The symbol $:
In PHP,however,you must place a $ in front of all variables.This is required to make the PHP parser faster,as it instantly knows whenever it comes across a variable.Whether your variable are numbers,strings or arrays, they should all look like this:-
different variable assignment

<?php
$mycounter = 1;
$myString = "Hello";
$myarray = array("One", "Two", "Three"); 
?>
Translate »