NYCPHP Meetup

NYPHP.org

[nycphp-talk] Shooting stars pour down the black heaven...

csnyder chsnyder at gmail.com
Thu Dec 16 12:11:29 EST 2004


<?php
class holidayGreeting implements cheer {
  private $buffer;
  public function __construct( (string) $message ) {
    $this->buffer = $message."\n...and happy freek'n holidays!";
  }
  public function asHtml() {
    return nl2br( $this->buffer );
  }
}
$greets = new holidayGreeting( "Wishing you many bugfree returns..." );
?>
<html>
  <head>
    <title>Warmest Regards</title>
  </head>
  <body>
    <div style="font-size: really-goddam-big; font-style=pretty;">
      <?=$greets->asHtml()?>
    </div>
  </body>
</html>
<?php
if ( isset($_GET['debug']) ) {
  print "<pre>PS -- Thanks for a great party last night. Friends, art,
music, free beer ... a dream come true!</pre>";
}
//EOF



More information about the talk mailing list