|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-02-12 00:17 UTC] rasmus
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 01:00:02 2025 UTC |
if "$theDb" is really named "$db", things do not work...thus renaming $db to $theDb is required var $db never gets set properly. shouldn't using $db as the variable name in setDB work (ie: the $db in setDB is different than var $db)? class DatabaseManager { var $db; function getDB() { return $this->$db; } function setDB( $theDb ) { $this->$db = $theDb; } };