Cannot re-assign $this?
问题 I have a script on a server that had php version 4. Now it is changed to php5 and the script does not function any more. I get this error: Fatal error: Cannot re-assign $this in URL database.php line 88 In the file is a class that has a function. Inside is the line 88: $this = new $db( $serv, $user, $pass, $dbName ); What does the error mean and how can I change it? 回答1: $this is a special "variable" that always refers to the object the current function is executing in. It only makes sense