PHP can be written directly in the body or linked to in a separate file in the <head>. PHP tags look like this: <?php….……?>.
document.write(“Hello!”); //This will write “Hello!”
$txt=”I wrote something in PHP!”;
My resulting script looks like this:
var d=new Date();
if (theTime < 10)
else if ((theTime >= 10) && (theTime < 14))
else if ((theTime > 14) && (theTime < 17))