Jump to content

[SOLVED] PHP n00b, If else statement help needed :)


MasterACE14

Recommended Posts

Run following code.

 

<?php
echo "Run First If Condition<br>";
if  (10 == 10)
{
print 1 + 1;
echo "<br>";
}
else
{
print 2 + 2;
echo "<br>";
}
echo "Run Second If Condition<br>";
if (10 == 11)
{
print 3 + 3;
echo "<br>";
}
else
{
print 4 + 4;
echo "<br>";
}

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.