fork download
  1. <?php
  2. $text= <<< HEREDOC
  3. LI_site = 'idwm.biz';
  4. LI_month_hit = 338632;
  5. LI_month_vis = 11129;
  6. LI_week_hit = 73786;
  7. LI_week_vis = 3518;
  8. LI_day_hit = 10028;
  9. LI_day_vis = 750;
  10. LI_today_hit = 9516;
  11. LI_today_vis = 730;
  12. LI_online_hit = 168;
  13. LI_online_vis = 20;
  14. HEREDOC;
  15. $result=Array();
  16. preg_replace("/=\\s*(.*?)\\s*;/es", "\$result[]=\"$1\"", $text);
  17. var_dump($result);
  18. // your code goes here
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
array(11) {
  [0]=>
  string(12) "\'idwm.biz\'"
  [1]=>
  string(6) "338632"
  [2]=>
  string(5) "11129"
  [3]=>
  string(5) "73786"
  [4]=>
  string(4) "3518"
  [5]=>
  string(5) "10028"
  [6]=>
  string(3) "750"
  [7]=>
  string(4) "9516"
  [8]=>
  string(3) "730"
  [9]=>
  string(3) "168"
  [10]=>
  string(2) "20"
}