Why when I convert the array to a string it does not convert all the keys in the array right:
Code:
<?php
$bMsg3 = array(
$at1 = 0, /* Inteiro */
$at2 = "", /* String */
$at3 = 0.0, /* Float */
$at4 = 0 /* Float */
);
$bMsg3[$at1] = 400;
$bMsg3[$at2] = "Hello World!";
$bMsg3[$at3] = 3.14;
$bMsg3[$at4] = 200.0;
// Converte para string
$str = implode(':', $bMsg3);
print "String: $str";
?>
The result is: String: 200 :: 0: 0: Hello World!
In what should be: 400: Hello World!: 3.14: 200.0
Does anyone know why?