scribu - propria subcultură

Understanding the ’self’ keyword in PHP

In PHP, you use the self keyword to access static properties and methods.

The problem is that you can replace $this->method() with self::method() anywhere, regardless if method() is declared static or not. So which one should you use?

Read full post...

Posted in Blog / php, tutorial | 17 10 2009 | 2 comments »

Tag: php

  • About
  • Contact
  • Paypal
  • Archive

Amână acum, nu lăsa pe altă dată!

Ellen DeGeneres