4
Why when I convert the array to a string it doesn’t convert all the keys of the right array:
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!
Which should be: 400:Hello World!: 3.14:200.0
Does anyone know why?
Simple and objective :)
– Wallace Maxters