php-src/ext/standard/tests/strings/strtr_with_reference.phpt
2014-05-09 15:14:27 +02:00

13 lines
156 B
PHP

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