Home
last modified time | relevance | path

Searched refs:JSON_PRESERVE_ZERO_FRACTION (Results 1 – 4 of 4) sorted by relevance

/PHP-8.2/ext/json/tests/
H A Dbug50224.phpt8 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-8.2/ext/json/
H A Djson.stub.php59 const JSON_PRESERVE_ZERO_FRACTION = UNKNOWN; define
/PHP-8.2/Zend/tests/type_declarations/union_types/
H A Dtype_checking_weak.phpt13 return json_encode($value, JSON_PRESERVE_ZERO_FRACTION);
H A Dtype_checking_strict.phpt15 return json_encode($value, JSON_PRESERVE_ZERO_FRACTION);

Completed in 7 milliseconds