I have:
class account {
private function something() {
# TRYING TO PUT ARRAY HERE
}
}
But, it keeps giving me an error when I use either of these. I googled how to create an array within a class, to no avail.
private array options = ['cost' => 20];
array options = ['cost' => 20];
How is it done? Thanks.