Archive for October 11th, 2007
explodeTree
While reading a blog post by Kevin Van Zonneveld’s on converting arrays to trees in PHP, I was shocked to see his approach to the problem. To paraphrase a popular quote: Some people, when confronted with a problem, think“I know, I’ll use eval.” Now they have two problems. Below is the same function, but using [...]
