static::keyword=following
- Static is used to declare function variables static.
A staitic variable is shared between the calls to the function and is initialized only during the first time the function is being executed. All other times the function is executed, the value remains the same.
- In order to declare a function variable as static, the static keyword must be employed at the first use of the variable.
- Typical first use of a static variable is to initialize the variable with a value in the following manner: static var_name O( = value) O(, ...)
. . . . . . . . . ( end of section PHP Glossary) <<Contents | Index>>
. . . . . . . . . ( end of section PHP Glossary of Terms, Lexemes, and Keywords) <<Contents | Index>>