<?php
$bMsg3 = array ( $at1 = 0 , $at2 = "" , $at3 = 0.0 , $at4 = 0 ) ;
echo "valores: at1: $at1 , at2: $at2 , at3: $at3 , at4: $at4 " . PHP_EOL ;
echo "bMsg3 original: " . implode ( ':' , $bMsg3 ) . PHP_EOL
; $bMsg3 [ $at1 ] = 400 ; //$bMsg3[0] = 400;
echo "bMsg3 após a 1ª atribuição: " . implode ( ':' , $bMsg3 ) . PHP_EOL
; $bMsg3 [ $at2 ] = "Hello World!" ; //$bMsg3[""] = "Hello World!";
echo "bMsg3 após a 2ª atribuição: " . implode ( ':' , $bMsg3 ) . PHP_EOL
; $bMsg3 [ $at3 ] = 3.14 ; //$bMsg3[0] = 3.14;
echo "bMsg3 após a 3ª atribuição: " . implode ( ':' , $bMsg3 ) . PHP_EOL
; $bMsg3 [ $at4 ] = 200.0 ; //$bMsg3[0] = 200.0;
echo "bMsg3 após a 4ª atribuição: " . implode ( ':' , $bMsg3 ) . PHP_EOL
;
PD9waHAKCgkkYk1zZzMgPSBhcnJheSgkYXQxID0gMCwgJGF0MiA9ICIiLCAkYXQzID0gMC4wLCAkYXQ0ID0gMCk7CgkKCWVjaG8gInZhbG9yZXM6IGF0MTogJGF0MSwgYXQyOiAkYXQyLCBhdDM6ICRhdDMsIGF0NDogJGF0NCIuIFBIUF9FT0wgOwoKCWVjaG8gImJNc2czIG9yaWdpbmFsOiAiLiBpbXBsb2RlKCc6JywgJGJNc2czKSAuUEhQX0VPTDsKCSRiTXNnM1skYXQxXSA9IDQwMDsgLy8kYk1zZzNbMF0gPSA0MDA7CgllY2hvICJiTXNnMyBhcMOzcyBhIDHCqiBhdHJpYnVpw6fDo286ICIuIGltcGxvZGUoJzonLCAkYk1zZzMpIC5QSFBfRU9MOwoJJGJNc2czWyRhdDJdID0gIkhlbGxvIFdvcmxkISI7IC8vJGJNc2czWyIiXSA9ICJIZWxsbyBXb3JsZCEiOwoJZWNobyAiYk1zZzMgYXDDs3MgYSAywqogYXRyaWJ1acOnw6NvOiAiLiBpbXBsb2RlKCc6JywgJGJNc2czKSAuUEhQX0VPTDsKCSRiTXNnM1skYXQzXSA9IDMuMTQ7IC8vJGJNc2czWzBdID0gMy4xNDsKCWVjaG8gImJNc2czIGFww7NzIGEgM8KqIGF0cmlidWnDp8OjbzogIi4gaW1wbG9kZSgnOicsICRiTXNnMykgLlBIUF9FT0w7CgkkYk1zZzNbJGF0NF0gPSAyMDAuMDsgLy8kYk1zZzNbMF0gPSAyMDAuMDsKCWVjaG8gImJNc2czIGFww7NzIGEgNMKqIGF0cmlidWnDp8OjbzogIi4gaW1wbG9kZSgnOicsICRiTXNnMykgLlBIUF9FT0w7