Functions are reusable blocks of code that perform specific tasks. PHP contains built-in functions, such as strlen(), which counts characters in a string. Programmers can also create their own functions. A user-defined function can accept information as parameters, perform instructions, and return a result whenever the function is called.