Functions

Functions can be used to execute same code over and over again. It is a good programming practice to use functions instead of repeating same code again and again. Functions have a single return value.

You can think of a function as obtaining a square root of a number. The number is going to be an input to square root function, the result of square root will be assigned to a variable in a computer or it will be used for additional calculations.

Functions have a single return value.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator