I am have a problem with undestanding some sentence at PHP.net about the static keyword,
At This Link, PHP.net Explaining about the static keyword i did understand all they say but i didn’t succeed to get one sentence witch start at “Like any other PHP static variable”.
I just didn’t get it if can some one please help me with code example, mabye explanation will be great.
I am have a problem with undestanding some sentence at PHP.net about the static
Share
When saying “like any other static variable” the manual refers to a static variable inside a function. The archetypal example is the function that keeps an internal counter:
Static variables like this and static class properties both have a limitation on the expressions you can initialize them with.
If you need to do something like this, the usual workaround is