A procedure

A procedure can be used when a repeatable code is used. Instead of using that code again and again, it is possible to put that code inside of a procedure, and call that procedure instead of reusing that code. It will make code more cleaner, and has a potential of reducing number of errors.

Even so, a function can be used to achieve the same result, the main difference between a procedure and a function, that a function returns something back, where a procedure just executes code.

YouTube video



Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator