Lines Matching refs:JSON_PRESERVE_ZERO_FRACTION
8 var_dump(json_encode(12.3, JSON_PRESERVE_ZERO_FRACTION));
9 var_dump(json_encode(12, JSON_PRESERVE_ZERO_FRACTION));
10 var_dump(json_encode(12.0, JSON_PRESERVE_ZERO_FRACTION));
11 var_dump(json_encode(0.0, JSON_PRESERVE_ZERO_FRACTION));
12 var_dump(json_encode(array(12, 12.0, 12.3), JSON_PRESERVE_ZERO_FRACTION));
13 var_dump(json_encode((object)array('float' => 12.0, 'integer' => 12), JSON_PRESERVE_ZERO_FRACTION));
17 var_dump(json_decode(json_encode(12.3, JSON_PRESERVE_ZERO_FRACTION)));
18 var_dump(json_decode(json_encode(12, JSON_PRESERVE_ZERO_FRACTION)));
19 var_dump(json_decode(json_encode(12.0, JSON_PRESERVE_ZERO_FRACTION)));
20 var_dump(json_decode(json_encode(0.0, JSON_PRESERVE_ZERO_FRACTION)));
21 var_dump(json_decode(json_encode(array(12, 12.0, 12.3), JSON_PRESERVE_ZERO_FRACTION)));
22 …decode(json_encode((object)array('float' => 12.0, 'integer' => 12), JSON_PRESERVE_ZERO_FRACTION)));
23 …e(json_encode((object)array('float' => 12.0, 'integer' => 12), JSON_PRESERVE_ZERO_FRACTION), true)…