C'Mon man - Just learn PHP properly, from a book or online guide - Randomly cobbling together bits of other people's code will not teach you anything and your code will end up a mess. Besides, PHP is a pretty easy language to get started in compared to a lot of others.