Searched refs:JSON_PRESERVE_ZERO_FRACTION (Results 1 – 4 of 4) sorted by relevance
/php-src/ext/json/tests/ |
H A D | bug50224.phpt | 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))); [all …]
|
/php-src/ext/json/ |
H A D | json.stub.php | 59 const JSON_PRESERVE_ZERO_FRACTION = UNKNOWN; define
|
/php-src/Zend/tests/type_declarations/union_types/ |
H A D | type_checking_weak.phpt | 13 return json_encode($value, JSON_PRESERVE_ZERO_FRACTION);
|
H A D | type_checking_strict.phpt | 15 return json_encode($value, JSON_PRESERVE_ZERO_FRACTION);
|
Completed in 7 milliseconds