Source for file hello_world.php
Documentation is available at hello_world.php
/* UTF-8 convert to FIGlet Unicode */
/* iconv PHP module required */
$str = iconv('utf-8', 'ucs-2be', $str);
for ($i = 0 , $len = strlen($str); $i< $len; $i++ ) {
$code = ord($str[$i++ ]) * 256 + ord($str[$i]);
$out .= $code < 128 ? $str[$i] : sprintf('%%u%04X', $code);
require_once 'Text/Figlet.php';
$error = $figlet->LoadFont ('makisupa.flf');
if (PEAR ::isError ($error)) {
echo 'Error: ' . $error->getMessage () . "\n";
echo $figlet->LineEcho (utf8tofiglet('Hello, world!')) . "\n";
Documentation generated on Mon, 11 Mar 2019 15:37:57 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|