GotAPI.com is a handy API lookup service for a variety of languages, including PHP and MySQL, Java, HTML and CSS, etc. Apparently, a C/C++ module is also in the works, which should make it even more complete and useful.
Note that the site is simply a better presented front-end for the standard, official documentation for each language, so the information is accurate as well.