Badgers are the new ponies

Array (

Figure 4: The array of tokens for indexing.

Look carefully and you will see that the even positions in the array are occupied with text (or are empty), and the odd positions in the array have tag contents (literally whatever is in between the < and the >). With this structured array of tokens dependably in place, the tokens are iterated over and the $tag variable is used as an even/odd counter directing the processing into either the tag handling area or the text handling area.

The values in position 9-11 (a, (), and a) are artifacts from search_nodeapi() which would otherwise be adding in link text from incoming links found in other nodes. This is discussed in detail below.

0 0

Post a comment