__invoke()
. Continue reading Tag Archives: php53
Preparing for ZCE 5.3
ZCE 5.3: Worth Doing?
Updated Syllabus
The main thing that annoyed me about teaching people for the 5.0 exam in the last couple of years is that it had a topic on the differences between PHP 4 and PHP 5. Personally, I have never worked commercially with PHP 4, and that’s true for lots of developers that I meet. So I ended up trying to teach PHP 4 which seemed silly! Happily that is gone now from the 5.3 Syllabus.
There are some new topics and I’m pleased to see the Web Features topic being added. This brings together some HTTP concepts and overall client/server architecture stuff that really helps round out the syllabus. I consider that studying for the exam is in the interests of all PHP developers, these topics are all useful and relevant.
3 Ways to Access a Namespaced PHP Class
Take this example (in a file called namespaced-class.php)
namespace Christmas\DaysOf;
class PartridgeInAPearTree{
}
Now we have a few ways to access that class.