Depth-first search maze generation in PHP
<p>I'm looking for a very simple implementation of the Depth-first search random maze generation algorithm. I'm trying to get my head around it, but i just can't understand the neighbor identification part. </p>

<p><a href="http://en.wikipedia.org/wiki/Maze_generation_algorithm#Depth-first_search" rel="nofollow">http://en.wikipedia.org/wiki/Maze_generation_algorithm#Depth-first_search</a></p>

<p>Maybe someone can provide a simple snippet? :)</p>
