strings.php

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>String functions</title>
    <meta charset="utf-8">
  </head>
  <body>
  <h1>Working with strings</h1>
  <p>
  <?php
     $boilerplate = "Dear <NAME>,<br/>Congratulations on being
		     selected for a special offer!";
     $name = "Ashley";
     print str_replace("<NAME>",$name,$boilerplate);
  ?>
  </p>
  <p>
    <?php
       print "Your name uppercased is " . strtoupper($name);
       print '<br/>';
       print "Your name reversed is " . strrev($name);
       print '<br/>';
       print htmlspecialchars($boilerplate); // escape the angle brackets
    ?>
  </p>
  </body>
</html>