Archive for February, 2007

Sorting arrays by an arbitary key value in PHP

Posted by michael on February 27th, 2007 under Code, MySQL
 •  1 Comment

I often (a couple times a month) have to sort an array of arrays by some arbitrary value located in the internal array. For example, I might want to sort the following structure by name.
Array[0] {
Array[0] {
id [...]

Useful things to know in CakePHP

Posted by michael on February 14th, 2007 under MySQL
 •  6 Comments

CakePHP is an awesome MVC (Model-View-Controller) framework for PHP 4 and 5 - it provides a great base to build your web application on, and can save you a huge amount of time if used correctly.
Unfortunately, the manual is sometimes lacking - whilst the information you need might be there, you probably will not be [...]