fork download
  1. <?php
  2. $combinedoptions = 'london+car';
  3. $array = explode("+", $combinedoptions);
  4. if (sizeof($array) != 2) { /*problem here*/ echo 'bad parameters'; return; }
  5. $option1 = $array[0];
  6. $option2 = $array[1];
  7. echo $option1;
  8. echo '======';
  9. echo $option2;
  10. ?>
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
london======car