1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Where can i find snippets for PHP ?

Discussion in 'PHP & Perl' started by SquirlyNutz, Jan 3, 2014.

  1. SquirlyNutz

    SquirlyNutz Power Member

    Joined:
    Feb 20, 2009
    Messages:
    671
    Likes Received:
    495
    Location:
    Toronto
    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.
     
  2. Tensegrity

    Tensegrity Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 22, 2009
    Messages:
    1,824
    Likes Received:
    969
    stackoverflow.com will answer 99% of your questions.
     
    • Thanks Thanks x 1
  3. divok

    divok Senior Member

    Joined:
    Jul 21, 2010
    Messages:
    1,015
    Likes Received:
    634
    Location:
    http://twitter.com/divok
    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 .
     
    • Thanks Thanks x 1
  4. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    950
    Likes Received:
    662
    Occupation:
    Web/Bot Developer
    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/
     
  5. macdonjo3

    macdonjo3 Jr. VIP Jr. VIP Premium Member

    Joined:
    Nov 8, 2009
    Messages:
    5,566
    Likes Received:
    4,317
    Location:
    Toronto
    Home Page:
    Personally, I would recommend GitHub.
     
  6. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,066
    Likes Received:
    2,872
    Gender:
    Male
    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.
     
  7. lpwilson997

    lpwilson997 Newbie

    Joined:
    Jan 29, 2014
    Messages:
    5
    Likes Received:
    1
    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
     
  8. rodvan

    rodvan Jr. VIP Jr. VIP

    Joined:
    Jul 27, 2010
    Messages:
    1,230
    Likes Received:
    482
    Occupation:
    developer, marketing, automation, machine learning
    Location:
    Wizard of Bots
    Home Page: