<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>test</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> </head> <body> <div> <?php $blahblah="To keep a long story short, I have a hangover."; $blah=substr($blahblah,0,28); print "$blah<br>"; $truth=substr($blahblah,-18,18); print $truth; $third=1/3; print $third; print "<br/>"; $short_third=sprintf("%.2f",$third); print $short_third; $tt=1/3*100; ?> </div> <p id="validator"> <a href="http://validator.w3.org/check?uri=referer"><img style="border: 0pt" src="http://dlib.info/valid-xhtml10.png" alt="Valid XHTML 1.0!" height="31" width="88" /></a> </p> </body> </html>