Archive for the ‘PHP Syntax’ Category

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 …

Difference between (int) php parenthesis and settype

Thursday, February 26th, 2009

If you want to explicitly convert a PHP variable into an integer. You could use the (more…)

array to vars php function - make array keys available as variables

Sunday, October 26th, 2008

There is a handy php function, called extract() ,that can be applied to a string-indexed …

list of accepted encodings that can be passed to mb_convert_encoding as arguments

Wednesday, January 30th, 2008

I was looking at the documentation for PHP’s mb_convert_encoding function. ()

I was having difficulty finding …

Can PHP accept multidimensional arrays passed in the http request as form variables?

Friday, October 5th, 2007

multidimensional arrays as form variables
(PHP 4.0 Beta 3 < )

Its really useful to be able to pass …

PHP: Dynamically Discovering Current Function’s Name

Wednesday, September 19th, 2007

If you are writing a script that bases decisions on a method name or function, how can …