php-src/ext/standard/tests/strings/strtr_with_reference.phpt
2018-10-14 19:45:12 +02:00

12 lines
155 B
PHP

--TEST--
strtr() with references
--FILE--
<?php
$foo = 'foo';
$arr = ['bar' => &$foo];
var_dump(strtr('foobar', $arr));
?>
--EXPECT--
string(6) "foofoo"