Where can i find snippets for PHP ?

SquirlyNutz

Power Member
Joined
Feb 20, 2009
Messages
721
Reaction score
541
Im a noob to PHP and just finished completing the course at codecademy, although i still think i need lot of practice.

Could you recommend some good websites that provide a lot of snippets? Or if there's any website that you think will be helpful, please let me know.
 
stackoverflow
php online docs
thenewboston php channel
lynda
tutsplus
Buy a book , sometimes offline help material is good
Or just google "your question "whenever you are stuck , you will find atleast 10 solutions to your problem .
 
For quick PHP snippets:
Code:
https://stackoverflow.com/questions/tagged/php

For full fledge PHP classes and libraries:
Code:
http://www.phpclasses.org/

Official docs (which include many snippets):
Code:
http://www.php.net/manual/en/
 
Personally, I would recommend GitHub.
 
There's no specific website for all the snippets. The way I get what I need is by googling for "keywords" that I want to find. As for example if I need to crop a png image using php, I would search for "crop png image php" and look at the results. I generally prefer answers from stackoverflow, phpclasses, php documentation and a few more, but depends at the snippet after all.
 
stackoverflow is my favourite, if u do a search on google for 'stackoverflow ..' and then problem your having u can see all results from their site
 
What he meant is code snippets for reusing code.
Something like this:
http://viralpatel.net/blogs/15-very-useful-php-code-snippets-for-php-developers/

You can try this:
http://www.phpbuilder.com/snippets

Also:
http://snipplr.com/all/language/PHP

There are many more sites. Just do a google for PHP Snippets.
 
Back
Top