If I have a class and want to have some static vars, which would be the correct way to declare them?
For example
class Foo{
public static $var1
public static $var2
public static $var3
......
}
OR
class Foo{
const $var1
const $var2
const $var3
......
}
both ways let me use Foo::var1. But I dont know well which is the correct way and/or if there is any adventage using one way or the other.
Thanks