<?php $a = " A=1 B=2";$a = str_replace(' ','&',$a);parse_str($a, $valor);echo $valor['B'];
Standard input is empty
2
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!