2081 2

BIT301 ยท 2081 ยท 10 marks

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]

Web Technology IIChapter 3: Functions and Variable ScopeGlobal variables and scope

--- 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...