Return to Snippet

Revision: 14161
at May 21, 2009 08:03 by beamconsultancy


Initial Code
<html>
<body>
<?php
// 01.display name with series

for($i=1; $i<=1;$i++)
{ 
echo $i;
echo ". welcome to arasiyalkalam <br />"; 
}
echo "Word length of welcome to arasiyalkalam is = ";
echo strlen("welcome to arasiyalkalam")."<br/>";


// 02. display day

echo "Today is "; 
echo date ("D")."<br/>";
echo "Date is ";
echo date("d.m.Y");

// 03. display greetings using if else

if($d=="friday")

echo "Have a nice weekend";
elseif ($d=="sun")
echo "Have a nice sunday";
else
echo "<br/> Have a nice day";

?>
</body>
</html>

Initial URL
www.arasiyalkalam.com

Initial Description
this codings display welcome message , curent date and greetings

Initial Title
greetings message

Initial Tags
php

Initial Language
PHP