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 array slice with range of 0 --SKIPIF-- <?php if (!extension_loaded("jsonpath..

Decoded Output download

--TEST--
Test array slice with range of 0
--SKIPIF--
<?php if (!extension_loaded("jsonpath")) print "skip"; ?>
--FILE--
<?php

$data = [
    "first",
    "second",
];

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

var_dump($result);
?>
--EXPECT--
bool(false)

Did this file decode correctly?

Original Code

--TEST--
Test array slice with range of 0
--SKIPIF--
<?php if (!extension_loaded("jsonpath")) print "skip"; ?>
--FILE--
<?php

$data = [
    "first",
    "second",
];

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

var_dump($result);
?>
--EXPECT--
bool(false)

Function Calls

None

Variables

None

Stats

MD5 56e2c2d533cea9572e94ae9d07f0947f
Eval Count 0
Decode Time 84 ms