Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
PHP Three - Conditional Logic
August 19, 2013 09:28PM
Just finished this section. Going at a really snail-pace, but its done. chapter 2 of the text book is quiet helpful in giving detailed explainations on how to to use if/else statements.
syntax : if (conditional operator) action to be taken if true;
if ($temperature>= 30) echo "wear you hat, and stay away from beer!";
else echo"have a blast and take it easy in the sun!";
Sorry, only registered users may post in this forum.

Click here to login