PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Lucas Baltes   PHP Figlet   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example usage
Class: PHP Figlet
Draw text strings using ASCII art fonts
Author: By
Last change: no userlogin required
Date: 20 years ago
Size: 544 bytes
 

Contents

Class file image Download
<html>
<body>
<pre>
<?php
/* _ _____ _ _ _
 * ___ | |_ ___ | __||_| ___ | | ___ | |_
 * | . || || . || __|| || . || || -_|| _|
 * | _||_|_|| _||__| |_||_ ||_||___||_|
 * |_| |_| |___|
 *
 * Usage example script
 *
 */

require("phpfiglet_class.php");

$phpFiglet = new phpFiglet();

if (
$phpFiglet->loadFont("fonts/standard.flf")) {
   
$phpFiglet->display("phpFiglet Rulez!");
} else {
   
trigger_error("Could not load font file");
}
?>
<pre>
</body>
</html>