What is the syntax of php?

Posted by Jannatul Ferdousi on 2:15 AM

In html we use <html> Content goes here </thml> syntax and if we coding insite of that html tag it consider that we using html tags.Like that in php we use <?php  Content goes here  ?>.
There have another option that is <? content goes here ?>.The symbol  " <?php or <?" means the start of php tag and symbol ?> means the end of php tag.Every thing insite them will consider php content.The first one is standard,although second one is grammatically right.we must saved our file adding extension .php after the file name.


Post a Comment