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 namespace Pagekit\Filter; /** * This filter decodes a JSON string to a array. */..

Decoded Output download

<?php

namespace Pagekit\Filter;

/**
 * This filter decodes a JSON string to a array.
 */
class JsonFilter extends AbstractFilter
{
    /**
     * {@inheritdoc}
     */
    public function filter($value)
    {
        if (is_string($value)) {
            return json_decode($value, true);
        }
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Pagekit\Filter;

/**
 * This filter decodes a JSON string to a array.
 */
class JsonFilter extends AbstractFilter
{
    /**
     * {@inheritdoc}
     */
    public function filter($value)
    {
        if (is_string($value)) {
            return json_decode($value, true);
        }
    }
}

Function Calls

None

Variables

None

Stats

MD5 a6ec2d25ff28040caafac03810fc1edd
Eval Count 0
Decode Time 94 ms