Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- Use: i = depth
- */
- define('A_CODE',ord("A")-1);
- class abacaba
- {
- var $Dictionary = array('');
- function __construct($depth)
- {
- for ($i=1;$i<=$depth;$i++)
- $this->Dictionary[]=chr(A_CODE+$i);
- }
- function getit($depth)
- {
- if (0==$depth) return $this->Dictionary[0];
- return $this->getit($depth-1) . $this->Dictionary[$depth] . $this->getit($depth-1);
- }
- }
- $x = new abacaba(25);
- $message = $x->getit($_GET['x']);
- echo <<<HERE
- <html>
- <body>
- <textarea autofocus cols="100" rows="30" wrap="soft" spellcheck="false">
- $message
- </textarea>
- <br>
- Lenght: $len
- </body>
- </html>
- HERE;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment