Friday, April 22, 2011

What my day looks like...in PHP



$time = 9;

echo "This is what my Friday will look like...in military time of course.";

while($time <= 17)
{
    if($time != 12 && $time != 17)
    {
        echo "At ".$time.":00 I am writing code.";
    }
   
    if($time == 12)
    {
        echo "It's ".$time.":00...LUNCH TIME!!!!";
    }
   
    if($time == 17)
    {
        echo "It's ".$time.":00...QUITTING TIME!!1!";
    }
    $time++;
}


3 comments:

virendra said...
This comment has been removed by the author.
virendra said...

seo company india

It's very great post. This is really helpful for me.Thanks for shearing it.

Lunettes de soleil Armani said...

thank you for sharing.great