Putting PHP & MySQL To Work
By Steve Fox2004-05-11
Reusable modules are key
function name ($var) {
// code goes here
}
The scope of the $var variable is the name function. Before you can reference global variables in a function in PHP, you need to use the global keyword to define them. If a function will only be used on one page, you can simply include it in the same script that will reference the function. If more than one script will use this function, consider putting it in a separate file that can be imported by any script.
Tutorial pages:
|
|
|||||||||
You might also want to check these out:
|
Leave a Comment on "Putting PHP & MySQL To Work"
You must be logged in to post a comment.
Link to This Tutorial Page!

