Reputation: 175
I am using some arrays in a PHP script. My idea is to declare the arrays as static, to avoid that every call of the class has to be create the arrays new.
class ID3
{
static $tableBR =
[
[11.025, 12.000, 8.000, null],
[null, null, null, null],
[22.050, 24.000, 168.000, null],
[44.100, 48.000, 32.000, null]
];
}
Is my assumption right?
If I declare them as static arrays, are then the arrays already included into the script?
Upvotes: 1
Views: 45