I use this website all the time: Clases, clases, clases, if you like stl and c++, this might be somewhat php's version of a collection of classes... not really, but for alot of the repetitive stuff, i use classes that wrapped it nicely... so far im only using the db class from this website but its definately worth looking at:

http://www.phpclasses.org/

The db class, which is VERY good and straightforward (well designed if i may add)... is at:
(http://www.phpclasses.org/browse.html/package/242.html)

Also another site (which is official) is the PEAR:

http://pear.php.net (but u might have to install some stuff)

Also, finally, a few more php code pages:

http://www.zend.com/codex.php
http://www.phpbuilder.com
http://www.code4u.com/