Wednesday 26 March 2014

How To Print Something in PHP?

Okay, If you're reading this then I know that you don't know what PHP is.

Here's a quick example.





<?php

echo "Hello World";

?>



Now let me explain this to you.

1. Every PHP script starts with this tag.

2. Echo means to print (display) something, if it's a string (line or word) then we have to put them in " " or ' ' otherwise if it's a variable then we are not supposed to put it in " " or ' '.
and every PHP function ends with a ; . 

3. End of PHP Script.

Easy, isn't it?

Follow Me On My Facebook Account.

No comments:

Post a Comment