Re: [PHP-DEV] A reference problem

2006-04-03 Thread Etienne Kneuss
Hi, Karoly Negyesi a écrit : > > Please note that the only difference between f1 and f2 that the first > > records the return value of f3() into a variable. However, this > > changes the output: > > > > array(1) { > > ["foo"]=> > > &string(3) "bar" > > } > > array(1) { > > ["foo"]=> > > s

[PHP-DEV] A reference problem

2006-04-02 Thread Karoly Negyesi
Hi! Without much ado, here is a piece of problematic code: Please note that the only difference between f1 and f2 that the first records the return value of f3() into a variable. However, this changes the output: array(1) { ["foo"]=> &string(3) "bar" } array(1) { ["foo"]=> string