1. PHP 4
  2. PHP 5
  3. PHP 5.1
  4. PHP 5.3

Share with your friends
AhmedNazir

Call

Answer: Option 2

In PHP 4, all properties were declared with var keyword, which is identical in effect to using public. For the sake of backward compatibility, PHP 5 accepts var in place of public for properties.

Talk Doctor Online in Bissoy App