That has to be the vaguest question I've seen today. There are literally millions of tutorials and examples for learning and using PHP, I'd post a Google search link but I'm pretty sure you could manage that yourself. PHP.net also has a helpful list of all the standard functions available.
If further assistance is required please re-open this thread or create a new one. You can re-open this thread by clicking on the "Administrative" text at the top of the original post.