PHP hints and tricks

use $this->member for non-static members, use self::$member for static members. Full Answer Here is an example of correct usage of $this and self for non-static and static member variables: Here is an example of incorrect usage of $this and self for non-static and static member variables: sample PDO and how work for db connection How __construct work on Class

Read More