habe heuten meinen freundlichen Tag ![Wink](https://www.php-resource.de/forum/core/images/smilies/wink.gif)
![Wink](https://www.php-resource.de/forum/core/images/smilies/wink.gif)
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