Web Technology II208110 marksGlobal variables and scope
How can you define and declare functions? Differentiate global variable from static variable. Write a PHP program to demonstrate the use of global and static variables.
How can you define and declare functions? Differentiate global variable from static variable. Write a PHP program to demonstrate the use of global and static variables.[10]
--- A function is a block of reusable code that performs a specific task. In PHP, functions are defined using the function keyword. - Function names are case-insensitive - Function names must start with a letter or underscore - Parameters are optional - The return statement is optional - Function...