Advertisement
Protocol_

Stanley random quotes

Apr 25th, 2012
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.17 KB | None | 0 0
  1. <?php
  2. $quotes=array("but you guys know it's true","because stanley = cool","c++ code is not magically good code","censor.php does nothing lol","you cant use != as an operator","implying the only point of it is for censor-free access","PHP socket servers are almost always bad","Join in, kids. He deserves it","that's not worth it","i'll help you with perl","but in perl you have to be a man","homeworld rocks","hope you'll get obsessed","there's the one from the forums"
  3. ,"ewwwwww","most downtime is never planned","if you're a cppsfag please leave","I have their db", "Be a man and use Perl", "so dont be like OH YEAH POLYMORPHISM <£ <3 <3 <3 <¬!!)UQ)WSU)ZAWJO C_+++ FTW UCJOEXDJOED FUCK PERL", "fuck php use perl", "because people who go out of their way to ddos places made for lonely nerds are just soooooooooo coooooooooooooooooool", "c++ code is not magically good code", "PHP socket servers are almost always bad");
  4.  
  5.  function array_random($arr, $num = 1) {
  6.      shuffle($arr);
  7.      $r = array();
  8.      for ($i = 0; $i < $num; $i++) {
  9.          $r[] = $arr[$i];
  10.      }
  11.      return $num == 1 ? $r[0] : $r;
  12.  }
  13.  
  14.  echo "<b>Stanley :</b><i> ".array_random($quotes).".</i>";
  15.  ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement