$proigr = array(
'z_1'=>0,
'z_2'=>rand(0, 1),
'z_3'=>rand(0, 1),
'z_4'=>rand(0, 1),
'z_5'=>rand(0, 1),
'z_6'=>rand(0, 1),
'z_7'=>rand(0, 1),
'z_8'=>rand(0, 1),
'z_9'=>rand(0, 1),
);
echo json_encode($proigr);