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 dot notation with key named null --SKIPIF-- <?php if (!extension_loaded("jso..
Decoded Output download
--TEST--
Test dot notation with key named null
--SKIPIF--
<?php if (!extension_loaded("jsonpath")) print "skip"; ?>
--FILE--
<?php
$data = [
"null" => "value",
];
$jsonPath = new \JsonPath\JsonPath();
$result = $jsonPath->find($data, "$.null");
var_dump($result);
?>
--EXPECT--
array(1) {
[0]=>
string(5) "value"
}
Did this file decode correctly?
Original Code
--TEST--
Test dot notation with key named null
--SKIPIF--
<?php if (!extension_loaded("jsonpath")) print "skip"; ?>
--FILE--
<?php
$data = [
"null" => "value",
];
$jsonPath = new \JsonPath\JsonPath();
$result = $jsonPath->find($data, "$.null");
var_dump($result);
?>
--EXPECT--
array(1) {
[0]=>
string(5) "value"
}
Function Calls
None |
Stats
MD5 | 24cfbf478b165a2603921703941dbffb |
Eval Count | 0 |
Decode Time | 95 ms |