Google gives many good links but http://www.php.net/docs.php and http://www.w3schools.com/php/default.asp are great links for most problems. If you search with "php basics" you get for example http://www.4webhelp.net/tutorials/php/basics.php
Reading/testing small scripts and books (from library) help a lot too.