Online
 
Friday, 09 January 2009
 
 
More article:
Related Content:

Website PHP - Example Whitespace
 

PHP - PHP Language Programing 

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

 

Tags: Add more tags...,
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)

Comment an article
  Name
  E-mail
   Title
Available characters: 4000
 Notify me of follow-up comments
This image contains a scrambled text, it is using a combination of colors, font size, background, angle in order to disallow computer to automate reading. You will have to reproduce it to post on my homepage
Enter what you see:

No comment posted

Natural 331
Statistic


Last Post

 
Top! Top!