Echo Statement |
Echo Statement code (Screenshot) :-
Echo Statement |
<?php echo 'Hello world'; ?>In screenshot is the example for how we can use echo statement and the output screenshot. Now we can also use html tags in php for example
Output (screenshot):-
Output Echo Statement |
In example of code we had echo statement after echo we can use single quotation mark(‘) or double quotation mark(”) and you will learn about this when, why and where you should use quotation marks. Basically Double quotation mark allows you to output variables inside program before that you should know what are variables are. But this tutorial is about echo i am not going in so detail later on this will explain in detail. and semi colon (;) is used to end of the line in echo statement and also separator for two echo statements used one by another otherwise we can get some errors for example see Screenshot1 and Screenshot2.
Screenshot1 |
Screenshot2 |
html tags in php code (screenshot 5) :-
Screenshot5 |
No comments:
Post a Comment
Thanks For Comment Will get you Soon..