Forum Moderators: coopster
if you find chunks of code that are reused multiple times in your site/application then you can move those to a function in another file. You can then include that file in every script that needs to use that code. You then end up with a function call in each other than the same code repeated over and over.
do you need to use them? No
once you get used to them they will make your life much easier though.
does one really need to know them
In my opinion, yes. A PHP programmer should have a working knowledge of functions, and class objects. Many of the day to day PHP commands that you write into a script are really functions (explode, implode, print_r).
As jatar_k pointed out, using functions can make your life better, especially if you find yourself re-using bits of code. Most of my earliest programs did not contain any functions (that I wrote), and now most of the code I write does include at least one user defined function. One I use extensively manipulates string data, removing extra whitespace from the ends, removing unwanted characters from the string, etc. That function is 6 lines of code, placed once within the script. Without using a function I would have re-written those 6 lines every time I needed to sanitize a string.