Viewing Paste 398

Formated Paste

  1. <?php
  2. include(dirname(__FILE__) . '/txt.english.php');
  3. $dupes = array();
  4. $vals = array_values($txt);
  5. $vals = array_unique($vals);
  6.  
  7. foreach ($vals as $val)
  8. $dupes[$val] = array_keys($txt, $val);
  9.  
  10. $txt = '';
  11.  
  12. echo '<?php
  13. ';
  14.  
  15. foreach ($dupes as $key => $dupe)
  16. echo '$txt[\'' . implode('\'] = $txt[\'', $dupe) . '\'] = \'' . strtr($key, "'", "\'") . "';\n";
  17.  
  18. ?'.'>';
  19. //print_r($dupes);
  20. ?>
Name:
Email:
Code/text to paste:
  • Enable code highlighting
  • Code Language:
  • A duck, cat and a goose walk into a bar. How many animals walked into a bar?:
Highslide for Wordpress Plugin