Concept

Where and how can functions be defined and used in PHP?

ComputerScienceOne / Declaring Functions

"In general, you can define functions anywhere in your PHP script or codebase. They can even appear after code that invokes them because PHP hoists the function definitions by doing two passes of the script. However, it is good style to include function definitions at the top of your script or in a separate PHP file for organization."

Related Ideas

Where and how can functions be defined and used in PHP? | ComputerScienceOne | Bifalgorithm | Bifalgorithm