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 bracket notation with quoted current object literal --SKIPIF-- <?php if (!ex..
Decoded Output download
--TEST--
Test bracket notation with quoted current object literal
--SKIPIF--
<?php if (!extension_loaded("jsonpath")) print "skip"; ?>
--FILE--
<?php
$data = [
"@" => "value",
"another" => "entry",
];
$jsonPath = new \JsonPath\JsonPath();
$result = $jsonPath->find($data, "$['@']");
var_dump($result);
?>
--EXPECT--
array(1) {
[0]=>
string(5) "value"
}
Did this file decode correctly?
Original Code
--TEST--
Test bracket notation with quoted current object literal
--SKIPIF--
<?php if (!extension_loaded("jsonpath")) print "skip"; ?>
--FILE--
<?php
$data = [
"@" => "value",
"another" => "entry",
];
$jsonPath = new \JsonPath\JsonPath();
$result = $jsonPath->find($data, "$['@']");
var_dump($result);
?>
--EXPECT--
array(1) {
[0]=>
string(5) "value"
}
Function Calls
None |
Stats
MD5 | 4708b0a4c116ac08317908095569f535 |
Eval Count | 0 |
Decode Time | 71 ms |