On 5 Mar 2012, at 16:45, Jay Blanchard wrote:

> [snip]
> Difficult to answer without knowing how your data is currently stored. Gimme 
> a var_dump or var_export of your data and I'll be able to give you an answer. 
> -Stuart
> [/snip]
> 
> It is an unordered nested list as in the following example -
> 
> <ul>
> <li>foo</li>
> <li>bar
> <ul>
> <li>glorp</li>
> </ul>
> </li>
> </ul>

Ahh, the list is in an HTML document, suddenly it all becomes clear. 
DOMDocument is probably your best bet here. Other HTML parsers are also 
available.

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to