FFD - Visit the site
ICMS

5 February 06

Beginner PHP Tutorial 6: Useful Functions

If you really want to delve into the php language properly, you should have a look at the PHP Manual since it has full function lists and it describes some extensions and how to use them as well. However, in this tutorial I will show you what functions may come in handy and the ones you will probably use the most.

When learning php you may come across multiple functions that are the same, or almost the same (like print() and echo()). In this situation choose the function you prefer, unless the other function does the job better.

String Functions

For strings there is a full list on the PHP.net Site

Variable Handling Functions

I don’t want to spend the rest of this tutorial explaining every single function, but I hope this gives you an idea. Here are some good php.net function lists:

Make sure you get to grips with the functions, especially ones you think you will use a lot. 5 hours reading the manual can only be a good thing.