Great Excess
Welcome to Great Excess arrow Website arrow php - website arrow Website PHP - Example Whitespace
Wednesday, 20 August 2008
 
 
English Language
Bahasa Indonesia
Computer
Website
Gallery
Health
Ebook
Tips
Movies

Visitor Data
Your IP
38.103.63.59
United States United States :
Browser
Unknown Browser Unknown Browser
Operating System
Unknown Operating System Unknown Operating System

Website PHP - Example Whitespace | Print |
 

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

 

This entry was posted on . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a comment.
Users' Comments (0)

Comment an article
  Name
  E-mail
   Title
Available characters: 600
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

 
Top! Top!