| Website PHP - Example Whitespace |
PHP - Example Whitespace: Space, Tabs and blank lines in between statements have no effect on how the code is executed. To PHP, this next script is treated like any other, regardless of the fact that some statements are on the same line, and others are separated by several line breaks:
<?php
$name = "Paul"; print "Your name is $name\n";
$name2 = $name; $age = 20;
print "Your name is $name2, and your age is $age\n";
print 'Goodbye, $name!\n';
>
You should use whitespace to separate your code into clear blocks, so that its meaning can be understood by visually inspecting the layout.
Read More PHP:PHP - Functions | PHP - Including Other Files | PHP - Comments Tutorial | PHP - Example Whitespace | PHP - Variables of PHP | PHP - Basics of PHP | PHP Abnormal Script | PHP - Output Control
Links to this article:"PHP - Withespace"
This entry was posted on . You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a comment.
Tags: Simple PHP, Pear, Easy PHP, PHP Tutorial, PHP MySQL, XSLT, Sap Tutorial, CSS Tutorial, XSL FO Java, SQL Tutorial.
| Users' Comments (0) |
|
No comment posted









