1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/standard/tests/array/in_array_with_ref.phpt
2014-05-25 18:19:00 +02:00

15 lines
199 B
PHP

--TEST--
in_array() with references
--FILE--
<?php
$value = 42;
$array = [&$value];
var_dump(in_array(42, $array, false));
var_dump(in_array(42, $array, true));
?>
--EXPECT--
bool(true)
bool(true)