/ Published in: PHP
this codings display welcome message , curent date and greetings
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<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 = "; // 02. display day echo "Today is "; echo "Date is "; // 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>