Chapter
Calling Functions
From ComputerScienceOne by Dr Chris Bourke
Concepts
- What happens when a PHP function does not return a value?
"value (you do not use the keyword void ). In practice, however, the function ends up returning null when doing this."
- How can PHP functions be organized in separate source files?
"40.1.2. Organizing Functions There are many coding standards that guide how PHP code should be organized. We’ll only discuss a simple mechanism here. One way to organize functions is to collect funct
- How do you call a function in PHP?
"40.1.3. Calling Functions The syntax for calling a function is to simply provide the function name followed by parentheses containing values or variables to pass to the function. Some examples: 1 $a