View unanswered posts | View active topics It is currently Mon Dec 11, 2017 4:50 am



Reply to topic  [ 1 post ] 
 PHP tutorial: 'IF' statement 
Author Message
Junior Member

Joined: Sun Sep 13, 2009 4:08 pm
Posts: 54
Location: United States Of America
Post PHP tutorial: 'IF' statement
Alright now, my first tutorial, just simply copy or write down what I say, and I will add a few notes now and then :D enjoy.

[PHP]
$variable = "Yes";

if ($variable == "Yes") {
echo "Yes, this variable does exist";
} else {
echo "No, this variable does not exist";
}
[/PHP]
If you don't put a correct variable, you should see the second echo's message.


Sun Sep 27, 2009 12:54 pm
Report this post
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.