The PHP manual is a great book but you must read careful to understand the important stuff. After my first look on the PHP5 manual, I got my attention on the “what’s new” section. So, what’s really useful from those new things.
1. interface Display { function display(); }
class Circle implements Display {
function display() { print “Displaying circle\n”; }
}
2. class MyClass { const SUCCESS = “Success”; }
print MyClass::SUCCESS;
3. function expectsMyClass(MyClass $obj) { /* code */ }
4. $obj = new MyIteratorImplementation();
foreach ( $obj as $value ) { print “$value”; }
5. foreach ($array as &$value) {
if ($value === “NULL”) { $value = NULL; }
}
…And many others.
Anyway, I concluded that reading is very useful.
Best regards,
Wizart Studios team – design, web development & marketing