fork(2) download
  1. <?php
  2.  
  3. $postArray = array('residencial', 'mecanico', 'display', 'led');
  4. $items = [];
  5.  
  6. foreach ($postArray as $item){
  7. array_push($items, $item);
  8. }
  9.  
  10. $string = implode('+', $items);
  11. echo $string;
Success #stdin #stdout 0.02s 24400KB
stdin
Standard input is empty
stdout
residencial+mecanico+display+led