Examveda
Examveda

Which one of the following variable cannot be used inside a static method?

A. $this

B. $get

C. $set

D. $date

Answer: Option A

Solution(By Examveda Team)

By definition, static methods are not invoked in the context of an object. For this reason, static methods and properties are often referred to as class variables and properties.

This Question Belongs to PHP >> Object Oriented Concept

Join The Discussion

Related Questions on Object Oriented Concept