Menu
I tried looking up in the help manuals for object and all I could find is some examples that just throw errors.
I ended up having to by trial and error make my owm and I ended up with this.
[code=php]class Object
{
function Object()
{
$this->property1 = 7;
$this->property2 = ‘localhost’;
$this->property3 = ”;
}
}
$newObject = new Object;
$newObject->Object();
Does a quicker method of making objects exist, like in javascript all you need is
[CODE]myObj = new Object;