// archives

linked list

This tag is associated with 1 posts

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 = [...]

 

July 2010
S M T W T F S
« May    
 123
45678910
11121314151617
18192021222324
25262728293031