The documentation

The first place to check should always be the PHP documentation, available online from The manual contains documentation on all PHP functions, as well as various usage examples, and also user comments. Very often its the user comments that are most helpful, because people recount problems they've experienced in the past and how they got around them. The PHP manual is an excellent resource that should really help you understand all aspects of the language.

The PHP web-site is a feat of engineering in itself, and allows you to find things in the online manual with the minimum of fuss. For example, when you visit, it will automatically locate where you are in the world and redirect you to a local mirror for the best speed.

Furthermore, you can type short URLs to get directly to manual pages. For example would load the strpos() manual page, and would lead you to the arrays page of functions. If you type an unrecognised function name, the site will automatically redirect you to a Google search for that name.

If possible, please try to use a mirror local to you to save bandwidth on the primary PHP site. For example, I use rather than the main site, as it is closer to me and therefore faster.


Want to learn PHP 7?

Hacking with PHP has been fully updated for PHP 7, and is now available as a downloadable PDF. Get over 1200 pages of hands-on PHP learning today!

If this was helpful, please take a moment to tell others about Hacking with PHP by tweeting about it!

Next chapter: Mailing lists >>

Previous chapter: Getting Help

Jump to:


Home: Table of Contents

Copyright ©2015 Paul Hudson. Follow me: @twostraws.