CODE - The content of an object is changed after executing a function
问题 The problem is that the content of $oldpop get magically changed after executing the function func , whereas the input of func is $matepop . Inside func , $oldpop is not used (I added the comment line to show the place - see the end of the code snippet of MAIN.PHP ). Below I provide just some principal parts of the code. Maybe, someone could suggest the reason of the problem? I should mention I don't use static variables. File MAIN.PHP include_once 'func.php'; include_once 'select.php'; class