Archive for the ‘PHP Syntax’ Category

PHP Inheritance of a class property’s visibility

Friday, September 3rd, 2010

In Object-Oriented PHP5 a class’s properties can have their ‘visibility‘ set.

If a property is undeclared …

PHP Static Methods Can Be Declared Without Static Keyword But Called Statically

Friday, September 3rd, 2010

Whenever I create a PHP class method that I intend to use statically, I declare it as …

Zend Config XML and INI files - How to Specify False and Other Non-String PHP Data Types

Friday, August 27th, 2010

Zend Config INI and Zend Config XML are handy adaptors that allow you …

Simple PHP pretty date time now!

Saturday, July 3rd, 2010

Sometimes I just wanna print a date and time in PHP quickly. I’m forever going off to …

Gotcha: Zend_Validate_StringLength interface changes between versions 1.9 and 1.10

Saturday, April 17th, 2010

Just a little note to myself for when i upgrade to Zend Framework 1.10

The interface to the …

A PHP secret to understanding Data Mapper Pattern in Fowler’s Patterns of Enterprise Application Architecture (PoEAA)

Tuesday, February 9th, 2010

Here’s a snippet of a Java code example in Fowler’s esteemed  book, Patterns of Enterprise Application Architecture …

call for new programming language written with refactoring tools in mind

Sunday, December 20th, 2009

i have just read Fowler’s Refactoring book and went looking for a php refactoring tool. Its …

Where to start? - Beginner Level to Expert PHP Website Developer

Friday, May 15th, 2009

This is a message to my previous self (like how Rimmer went back to tell …

no PHP error thrown when private property accessed or modified by subclass

Friday, April 24th, 2009

This is another ‘Gotcha’  moment that i want to share with you.

I don’t often declare a PHP …

Can an interface class extend another interface class in PHP

Tuesday, April 14th, 2009

Yes - it can in PHP version 5.2.
(The example code below is also available …