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

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Test union with duplication from array --SKIPIF-- <?php if (!extension_loaded("js..

Decoded Output download

--TEST--
Test union with duplication from array
--SKIPIF--
<?php if (!extension_loaded("jsonpath")) print "skip"; ?>
--FILE--
<?php

$data = [
    "a",
];

$jsonPath = new \JsonPath\JsonPath();
$result = $jsonPath->find($data, "$[0,0]");

var_dump($result);
?>
--EXPECT--
array(2) {
  [0]=>
  string(1) "a"
  [1]=>
  string(1) "a"
}

Did this file decode correctly?

Original Code

--TEST--
Test union with duplication from array
--SKIPIF--
<?php if (!extension_loaded("jsonpath")) print "skip"; ?>
--FILE--
<?php

$data = [
    "a",
];

$jsonPath = new \JsonPath\JsonPath();
$result = $jsonPath->find($data, "$[0,0]");

var_dump($result);
?>
--EXPECT--
array(2) {
  [0]=>
  string(1) "a"
  [1]=>
  string(1) "a"
}

Function Calls

None

Variables

None

Stats

MD5 3b7344dd4673c7ee993f7fba366c51f6
Eval Count 0
Decode Time 91 ms