Managing Function Parameters

In this section, you will learn how to use and manage parameters to build effective functions. While functions that don’t use parameters typically do very little, they can be very useful for fixed or static tasks. Parameterized functions provide dynamic code blocks that meet more complex programming tasks often required by business rules.

Parameters by Value or Reference

As discussed in the introduction to this chapter, parameters are passed by value or reference to functions. Passing a parameter by value means that you hand a copy of the variable or literal value to a function. The alternative to passing a parameter by value is to pass one by reference, which means that you provide a reference or pointer to the ...

Get Oracle Database 10g Express Edition PHP Web Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.