Well, you *can* do this in PHP, but it would require a LOT of traffic between client and server. It's probably better to do this all in JavaScript, since clicking on a [+] or [-] won't result in a new request of the server.
Take care,
Nik
http://www.bigaction.org/