Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

OO PHP help

Name: Anonymous 2009-08-31 20:21

Say I have a class like so:


class Connection
{
function __construct() {
...
$this->mysqli = new mysqli(params);
}
}


And if want to use the "$this->mysqli" in another class, can I use..


class NewClass extends Connection
{
function SomeFunction() {
...
$result = parent::$this->mysqli->query($query);
}
}

Name: Anonymous 2009-08-31 20:52

Fascinating.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List