mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
12 lines
162 B
PHP
12 lines
162 B
PHP
--TEST--
|
|
extract() with negative keys
|
|
--FILE--
|
|
<?php
|
|
|
|
$arr = [-1 => "foo"];
|
|
var_dump(extract($arr, EXTR_PREFIX_ALL | EXTR_REFS, "prefix"));
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(0)
|