SHARE
TWEET

Untitled

a guest May 19th, 2017 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. class Sloganizer {
  3.     function getSlogan($keyword) {
  4.     $slogans = array(
  5.         '1'=>'%KEYWORD% - the way to health and happiness!',
  6.         '2'=>'The president buys %KEYWORD%',
  7.         '3'=>'%KEYWORD% - The Future of mankind!',
  8.         '4'=>'%KEYWORD% or food? Ill take %KEYWORD%!',
  9.         '5'=>'Your %KEYWORD%. My %KEYWORD%. %KEYWORD% for all!',
  10.         '6'=>'My life was turned around by %KEYWORD%',
  11.         '7'=>'All you need is %KEYWORD%',
  12.         '8'=>'%KEYWORD% - Execllence itself.',
  13.         '9'=>'Just %KEYWORD%',
  14.         '10'=>'I love %KEYWORD%!',
  15.         '11'=>'Get In, Get Out, Get %KEYWORD%',
  16.         '12'=>'Have Your Life Enriched By %KEYWORD%',
  17.         '13'=>'%KEYWORD% - Perfection itself.',
  18.         '14'=>'Will it blend? Will it %KEYWORD%',
  19.         '15'=>'There is only one thing i want and that is %KEYWORD%',
  20.         '16'=>'%KEYWORD%!!!',
  21.         '17'=>'%KEYWORD% Just does it!',
  22.         '18'=>'%KEYWORD% - Forget the rest',
  23.         '19'=>'Naughty little %KEYWORD%',
  24.         '20'=>'%KEYWORD% - Delicious!',
  25.         '21'=>'Think Once, Think Twice, Think %KEYWORD%',
  26.         '22'=>'%KEYWORD% - Broaden Your Horizons!',
  27.         '23'=>'Anything is possible with %KEYWORD%',
  28.         '24'=>'With %KEYWORD%, the only limit is yourself!',
  29.         '25'=>'Anything can happen with %KEYWORD%',
  30.         '26'=>'%KEYWORD% - The last word in popularity',
  31.         '27'=>'%KEYWORD% - Endorsed by Albert Einstein',
  32.         '28'=>'The wonder has a name: %KEYWORD%',
  33.         '29'=>'The %KEYWORD% lifestyle',
  34.         '30'=>'%KEYWORD% - See More. Do More.',
  35.         '31'=>'Be alive with %KEYWORD%',
  36.         '32'=>'Theres lots of fun in %KEYWORD%',
  37.         '33'=>'%KEYWORD%: Boldly going, where no man has gone before',
  38.         '34'=>'Destiny. %KEYWORD%',
  39.         '35'=>'%KEYWORD% - Its better than vomit.',
  40.         '36'=>'A %KEYWORD% a day keeps the doctor away.',
  41.         '37'=>'Go further with %KEYWORD%.',
  42.         '38'=>'%KEYWORD% just blows the mind.',
  43.         '39'=>'%KEYWORD% - unbelievable!',
  44.         '40'=>'%KEYWORD%: better than chocolate',
  45.         '41'=>'%KEYWORD% - Do it once, Do it twice.',
  46.         '42'=>'%KEYWORD%tastic!'
  47.     );
  48.  
  49.     $result = count($slogans);
  50.  
  51.     $randomNumber = rand(1, $result);
  52.     $randomSlogan = $slogans[$randomNumber];
  53.     $compositeSlogan = str_replace('%KEYWORD%', $keyword, $randomSlogan);
  54.  
  55.     return $compositeSlogan;
  56.  
  57.     }
  58. }
  59. ?>
RAW Paste Data
Top