Hey PHP gurus...question for ya.
When using classes, let's say:
for example...and you need a method/variable that cannot change, I know to use the final keyword along with the scope keyword, but does placement matter?
For example, when I code in Java I can do:
but in PHP it looks like it needs to be:
I just don't like the look and feel of this.
Can it go both ways?
Thanks!
When using classes, let's say:
Code:
class Doggy {
}
for example...and you need a method/variable that cannot change, I know to use the final keyword along with the scope keyword, but does placement matter?
For example, when I code in Java I can do:
Code:
public final
but in PHP it looks like it needs to be:
Code:
final public
I just don't like the look and feel of this.
Can it go both ways?
Thanks!







