Why is this php statement $var1 += & $var2 wrong?
response to comments: i’m using it to store a smart database query, in fact $var2 is my database connection, i can’t drop the reference because it would mean making too many copies of my database, as for the bitwise response &= will do the increment also?
Why is this php statement $var1 += & $var2 wrong? response to comments :
Share
Sorry to dissapoint you, but the correct answer to my problem was that my connection was returning an array, and the operation was not allowed. Sorry for not sharing all my code, that must have misguided you…