fork download
  1. <?php
  2.  
  3.  
  4. $a = " A=1 B=2";
  5. $a = str_replace(' ','&',$a);
  6. parse_str($a, $valor);
  7. echo $valor['B'];
  8.  
  9.  
Success #stdin #stdout 0.02s 23664KB
stdin
Standard input is empty
stdout
2