Forum Moderators: coopster

Message Too Old, No Replies

What is a function?

         

bobnew32

6:29 pm on Jul 8, 2003 (gmt 0)

10+ Year Member



What is a function in php code? I have seen code start with Function then blahblahbblah. Then, in the url, it has the code page.php?fn=view or somthing like that. Can somone help me on this?

scotty28

6:43 pm on Jul 8, 2003 (gmt 0)

10+ Year Member



here is a breakdown url page.php?fn=view
? is basically a seperator for the script name and any variables passed to the script.

fn=view means that the variable fn will be passed to the script with a value of view.

Functions can be used to perform just about any action, you can think of them as mini scripts. Using functions within a script makes it easier to maintain and read.