Tag: OOP

How NOT to write (OOP PHP) code

My comment on one of the files of SuiteCRM: https://github.com/salesagility/SuiteCRM/issues/3561 which was closed and kindly…

PHP Memory Usage: The cost of a million objects

Even though memory is getting cheaper, our applications are becoming more complicated and we need…

Programming with too many unknowns in a dynamic language

The aim is to write code efficiently, but without compromising easy debugging, maintenance, and especially…

PHP Associative Arrays for C# .NET

I always loved the ease of use of arrays in PHP. Simple, dynamic arrays; arrays…

PHP: magic methods

Regarding __toString class my_tag_A{ public $id=''; public $href=''; public $target=''; public $class=''; public $label=''; function…

PHP5: Autoloading your magic!

__autoload() function can be very useful to optimize your code esp. when you have so…