phptrie icon indicating copy to clipboard operation
phptrie copied to clipboard

Returning the actual trie?

Open dkisselev opened this issue 10 years ago • 1 comments

I'd like to be able to return the actual trie that's used. I'm looking to use this library to generate + serialzie a trie that will then be parsed by a javascript client in the browser.

Seems like just a getter for $trie should be enough

dkisselev avatar Aug 28 '14 19:08 dkisselev

Upon looking into it further, it looks like the internal trie is actually an array of more trie objects.

So ideally getTrie should convert everything into an associative array and return it.

dkisselev avatar Aug 28 '14 19:08 dkisselev