Vidyalelo
PHP · Q17

Object Oriented Concept

Programming · PHP · question 17

Q17

Which version of PHP introduced the static keyword?

A.
PHP 4
B.
PHP 5
Answer
C.
PHP 5.2
D.
PHP 5.3

Answer: Option B

Solution

Answer: Option B
Solution:
The static keyword was introduced with PHP 5. It cannot be used in PHP 4 scripts.