View Single Post
Old 10-02-2006, 09:20 AM   #3 (permalink) Top
Addis
The King

 
Addis's Avatar
 
Join Date: Jan 2004
Age: 18 Male
Posts: 5,255
Times Helpful: 403
My Mood: Drunk
Status: Offline

My Computer

Good tutorial. Carrying on from if statements...

Every statement should be terminated with a ;. Because the PHP interpreter program ignores whitespace characters during coding then it is important to remember to terminate every statement. e.g.:
PHP Code:
echo "Test..."$a $b//would be the same as
echo "Test...";
$a $b
Notice that the if (condition) does not terminate in a ;, as it compares an expression to see if its true or false. However because it often carries more than one argument you need to use the { and } around your true condition code to group them together.

__________________
Never trust a program you don't have the source code for.

My website | Powerful Desktop Linux | Linux for human beings | Linux for power users | Linux for ricers
Send a message via MSN to Addis   Reply With Quote
The Following 2 Users Say Thank You to Addis For This Useful Post: Show me >>