1 Rules in PHP Fri Dec 17, 2010 10:25 pm
Unknown Data
Registered Member
Rules in PHP Learn PHP - part 2 |
In this lesson will we take a look at the basic rules in PHP. Quotation marks in text We just grab a couple our example from the previous lesson and work a little further with it.
Hello world! From the previous lesson, learned we that a PHP script starts with <?php or and ends with ?>. Since we've saved the document with .php extension, the server must be parsed before the final document is forwarded to the calling browser. In the document, the server encounters the <?php which indicates that there is php code below. PHP section ends with ?>. We mentioned earlier that everything that's printed which stands between the quotation marks. But what if you want to use the quotation marks in a text to be printed? Immediately will this result cause an error. And therefore is it necessary to use a backslash before the quotation marks. So it looks like this now.
In some situations can it be very nice to be able to give a comment in connection with PHP programming. This can make your script more manageable, and when some time has went by, will the comment help to refresh the understanding of the program. An example could be.
As Dimon quickly saw, can you also use these to comments.
In next lesson will we work with the variables. |
Notice : This tutorial is copyrighted by WebArtz Forum. You may not publish it on anywhere without written permission from the administrators. |
Last edited by Unknown Data on Sun Dec 19, 2010 5:58 pm; edited 2 times in total