Yea, when i wanted to learn php i looked everywhere for books, didnt get any. Instead i bought small, unfinished or messy scripts and I fix them up. Then I use the ideas I had and looked at the code for help to create my own script based off the original.
Works great, I only bought one script and started making my own sites with php.