=0;$i--) { if ($i==2) $ret.="."; // feed hole if (($char & (1<<$i)) !=0) $ret.="o"; else $ret.=" "; } $ret.="|"; return $ret; } if (isset($_REQUEST["text"])) { echo "
  ",start_papertape(),"\n";

	$len=strlen($_REQUEST["text"]);

	for ($i=0;$i<$len;$i++) {
	    $d=$_REQUEST["text"][$i];
	    echo "$d ",to_papertape($d),"\n";
	}

	
	echo "  ",finish_papertape(),"\n";
	echo "  ",stop_papertape(),"
\n"; } else { $_REQUEST["text"]=""; } ?> Enter text