// archives

Archive for December 6th, 2009

PHP Linked List Example

Continuing my data structures thoughts from previous posts, I’ve created a linked list example. /* * Node – a basic link node. */ class Node { var $id; var $next; /* * */ function __construct($id) { $this->id = $id; } } $a = new Node(“mark”); var_dump($a); $b = $a->next = new Node(“wes”); var_dump($b); $c = [...]

 

December 2009
S M T W T F S
« Sep   Jan »
 12345
6789101112
13141516171819
20212223242526
2728293031