1 2 3 4 5 6 7 8 9 10 11 12
--TEST-- strtr() with references --FILE-- <?php $foo = 'foo'; $arr = ['bar' => &$foo]; var_dump(strtr('foobar', $arr)); ?> --EXPECT-- string(6) "foofoo"