- json_decode: documentation ( source)
- json_encode: documentation ( source)
<?php
$a = json_decode(json_encode(array(500019.68325692)), true);
$b = array(500019.68325692);
print ($b[0] == 500019.68325692 ? 1 : 0);
print ($a[0] == 500019.68325692 ? 1 : 0);