Fork me on GitHub

Object Oriented Programming



Facts


PPP & F


Constants, Static


Interfaces & Abstract Classes


Instanceof

Allows you to inspect all of the ancestor classes of your object, as well as any interfaces


Autoloading

1
2
3
4
5
6
<?php
function __autoload($class_name)
{
    require_once "/www/phpClasses/{$class_name}.inc.php";
}
$a = new friend;

Special Functions


Exceptions


SPL


Reflection API


Type Hinting

http://www.php.net/manual/en/language.oop5.typehinting.php


Late Static Binding

http://php.net/manual/en/language.oop5.late-static-bindings.php

blog comments powered by Disqus