fork download
  1. <?php
  2.  
  3. // your code goes here
  4. $prices = '111222';
  5. $parts = explode('-', $prices);
  6. var_dump($parts);
Success #stdin #stdout 0.02s 25728KB
stdin
Standard input is empty
stdout
array(1) {
  [0]=>
  string(6) "111222"
}