lime icon

Phosphorus and Lime

A Developer's Broadsheet

This blog has been deprecated. Please visit my new blog at klenwell.com/press.
PHP: matrix walk
As for a proximity search where values are laid out on a 2-dimensional grid:

$steps = ceil(( abs($VAL1[0]-$VAL2[0]) + abs($VAL1[1]-$VAL2[1]) ) / 2)


keywords: PHP, search, fuzzy, grid, walk