Function's scope in PHP

Variables that are inside of PHP function have local scope. It means two things:

1. It is possible to have a variable with the same name as in the scope of the main code.

2. Modification of that variable value will not impact the variable that is declared in the main section of the code.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator