jesobreira

Joel Lipsum

Sep 8th, 2013
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.55 KB | None | 0 0
  1. /**
  2.   *    Joel Ipsum
  3.   *    @author Jefrey S. Santos <jefrey.sobreira[at]gmail[dot]com>
  4.   */
  5.  
  6. header("Content-type: text/html; charset=UTF-8");
  7. echo joelipsum(2);
  8.  
  9. function joelipsum($paragrafos) {
  10.     $retorno = "You tá the brinqueichon uite me, cara? ";
  11.     $jafoi = array();
  12.     $frases = explode(". ", 'You ar a véri mutchi caspa man. Do you nou the number one xampu contra caspa in the uordi. Luqui aqui Capitachion. Rimouve uarandredi porcenti ofi the caspa ande idrateiti ior hair. You puti the xampu in the midiu, from the fronte, from the berrind ande the caspa donti cai io xolder. Pliss, luqui tu me. Not joelzetes. Finixi the cocereichon in the red. Bati, pera ai, you no precisa, you ar a carecaition, you donti révi caspa. Tu teami prei veri gudi! From birráind, from de léfiti, from de raiti! My equipe pray veri naici. Iraq ande sal de Africa pray semen. But de second taime ai hevi de mete. Control de mete bai equipe praying de left de write in the midiu. Have on bext oportuniti four ixcore. Iraq marquee de midiu found berrind. I afte-dem in seconde time ai maique to chanjer. Uon prayer experience sempre maschego. I anoder prayer que hevi eperience. Qui pray very gude Steven pienar. but ai donti "bidebu"');
  13.     for($i = 0; $i <= $paragrafos; $i++) {
  14.         echo "<p>";
  15.         for($j = 0; $j <= 5; $j++) {
  16.             if(count($jafoi)==count($frases)) $jafoi = array();
  17.             while(in_array($new = rand(0, count($frases)-1), $frases)) {
  18.                 $new = rand(0, count($frases)-1);
  19.             }
  20.             $retorno .= $frases[$new].". ";
  21.         }
  22.         $retorno .= "</p>\n";
  23.     }
  24.     return $retorno;
  25. }
Add Comment
Please, Sign In to add comment