Answer the question
In order to leave comments, you need to log in
How to set a default value for a static variable?
It is clear that you can do this:
And if the expression should be the default value?
public static $var = 25;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question