<?php for($i = 1 ; $i<5 ; $i++){ $array[] = array("a"=>$i,"b"=>2);} echo '<pre>';print_r($array);
Standard input is empty
<pre>Array ( [0] => Array ( [a] => 1 [b] => 2 ) [1] => Array ( [a] => 2 [b] => 2 ) [2] => Array ( [a] => 3 [b] => 2 ) [3] => Array ( [a] => 4 [b] => 2 ) )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!