You need to pass data into a block of code in your PHP script, perform some operations on the data, and then return a result. How would you accomplish this by defining and using a function?

  • Define the block of code as a separate PHP script and include it using the include statement.
  • Define the block of code inside an HTML