I'm trying to set up some vars in a class and need to count an object in an array but am not doing it right obviously..
proceedurally it woud be this
$productIDs = array(12, 78, 79, 153);
$count = count($productIDs);
but that causes an error in this context.
class myClass extends base {
$productIDs = array(12, 78, 79, 153);
$count = count($productIDs);
}
i've this and a few other variations below...
$count = count($this->productIDs);
big thanks for any help on this...