pastebin

Paste Search Dynamic
Recent pastes
results
  1.   <?php
  2. $input  = 'top=1,2-modul=1-nativendo=8';
  3.  
  4. $chunks = array_chunk(preg_split('/(=|-)/', $input), 2);
  5. $result = array_combine(array_column($chunks, 0), array_column($chunks, 1));
  6.  
  7. print_r($result);
  8. echo $results[top];
  9.  
  10.     ?>
Parsed in 0.011 seconds