References are not ugly, if i used a custom class for storing the data they would be passed by reference anyways as of PHP5

References allow control over the data in the memory, as your referencing data and not creating new ones.


Quote Originally Posted by Whoo View Post
Yeah litewarez it's true, but still, we are working with someone who is learning PHP and therefor I didn't give him any code that he wouldn't understand .
This is a new technique that should be used as standard, if he is new to PHP, should we not teach him the best possible solution regardless weather its its slightly more demanding for a newbie ?
litewarez Reviewed by litewarez on . PHP List Hierarchy http://lulzimg.com/i02/13ed837b.png Can you suggest how I output these to an expanding/collapsing hierarchy? Example: http://jqueryui.com/demos/accordion/ Although the accordian is great, it wont work unless I output the html correctly which i'm finding very hard to do. Here is the page with my current code: http://filewi.re/releases.php And the code itself: http://code.google.com/p/filewire/source/browse/trunk/includes/releases.php Rating: 5