<?php
if(!isset($_GET['act'])){
echo <<<END
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
 <title>Using ECHO to Create Output</title>
</head>
<body>

<h3>We can use ECHO or PRINT to create output in PHP</h3>

<table width="500">
 <tr>
  <td>ECHO is <em>slightly</em> faster than print.</td>
 </tr>
 <tr>
  <td>PRINT returns a <em>result</em>.</td>
 </tr>
</table>

<p>
 For more information on the differences between ECHO and PRINT go to:
 <a href="https://techinterviews.com/?p=24">PHP Interview Questions</a>
</p>

<p><a href="{$_SERVER['PHP_SELF']}?act=view_source">View Source</a></p>

</body>
</html>
END;
} elseif($_GET['act'] == 'view_source'){
 show_source("class_002_echo.php");
}
?>