Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /** * Decodes a JSON string * * @phpstub * * @param string $json * @param boo..

Decoded Output download

<?php

/**
 * Decodes a JSON string
 *
 * @phpstub
 *
 * @param string $json
 * @param bool $assoc
 * @param int $depth
 * @param int $options
 *
 * @return mixed Returns the value encoded in  in appropriate
 *               PHP type. Values ,  and
 *               (case-insensitive) are returned as true, false
 *               and null respectively. null is returned if the
 *               cannot be decoded or if the encoded
 *               data is deeper than the recursion limit.
 */
function json_decode($json, $assoc = false, $depth = 512, $options = false)
{
} ?>

Did this file decode correctly?

Original Code

<?php

/**
 * Decodes a JSON string
 *
 * @phpstub
 *
 * @param string $json
 * @param bool $assoc
 * @param int $depth
 * @param int $options
 *
 * @return mixed Returns the value encoded in  in appropriate
 *               PHP type. Values ,  and
 *               (case-insensitive) are returned as true, false
 *               and null respectively. null is returned if the
 *               cannot be decoded or if the encoded
 *               data is deeper than the recursion limit.
 */
function json_decode($json, $assoc = false, $depth = 512, $options = false)
{
}

Function Calls

None

Variables

None

Stats

MD5 af71bd9f397757c923bc9f3136164f24
Eval Count 0
Decode Time 79 ms