daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $str = 'AT BE BG CY CZ DK EE FI FR DE GR HU IE IT LV LT LU MT NL PL PT RO SK SI ES SE GB';
  4.  
  5. //$arr2 = str_split($str, 2);
  6. $arr2 = explode(" ", $str);
  7.  
  8.  
  9.  
  10. function addRq($sValue) {
  11.     return '"'.$sValue.'"';
  12. }
  13. $newA = array_map("addRq", $arr2);
  14.  
  15. $list = implode(',',$newA);
  16.    
  17. var_dump($list);
RAW Paste Data
Top