habe heuten meinen freundlichen Tag
PHP-Code:
function abc ( & $_db ){
$_db->blablabla();
}
class abc{
var $db = null;
function abc ( & $_db ){
$this->db = & $_db;
}
function z(){
$this->db->blablabla();
}
}
$db = & new DB();
abc( $db );
$test = & new abc( $db );
Kommentar