All you need to programme in PHP is
PHP: Hypertext Preprocessor the manual explains everything about each function which is all you really need to know, and do yourself a favour by turning on full error reporting in everyscript you write, will save you loads of time.