Trie example in php