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