From a675b6d76fd6a37454031303e4f9fd4f6a5ff0fe Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Sat, 22 May 2010 11:32:54 +0000 Subject: [PATCH] Document new parameter to json_decode() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@299623 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/json/functions/json-decode.xml | 56 ++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/reference/json/functions/json-decode.xml b/reference/json/functions/json-decode.xml index ee0426e4ef..a7b3ca0802 100644 --- a/reference/json/functions/json-decode.xml +++ b/reference/json/functions/json-decode.xml @@ -13,6 +13,7 @@ stringjson boolassocfalse intdepth512 + intoptions0 Takes a JSON encoded string and converts it into a PHP variable. @@ -48,6 +49,16 @@ + + options + + + Bitmask of JSON decode options. Currently only + JSON_BIGINT_AS_STRING + is supported (default is to cast large integers as floats) + + + @@ -64,6 +75,30 @@ + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.4.0 + + The options parameter was added. + + + + + + + + &reftitle.examples; @@ -204,6 +239,27 @@ Last error : No error has occurred NULL Last error : The maximum stack depth has been exceeded +]]> + + + + <function>json_decode</function> of large integers + + +]]> + + &example.outputs; + +