You are on page 1of 1

Php

Code must be in between


<? Php and ?>

Echo (or) print keyword for printing the data
Sy : echo wht ever data u want write here ;

Some basic html code <br> is for break the line . and <b> for paragraph format
Variables :
In php we can directly assign a variable to a field with out defining its data type
Sy : $name = navin ;
Ex : echo my name is $name ;

Comments :
To comment a line give // at beginning of the line
For custom comment use /* and */ at beginning and ending.

You might also like