PHP Classes

Global vars is bad practice.

Recommend this page to a friend!

      PHP Proxy Checker  >  All threads  >  Global vars is bad practice.  >  (Un) Subscribe thread alerts  
Subject:Global vars is bad practice.
Summary:Package rating comment
Author:Alexey Freelancer
Date:2012-04-16 19:19:25

Alexey Freelancer rated this package as follows:

Utility: Sufficient
Consistency: Sufficient
Documentation: Good
Examples: Good

  1. Global vars is bad practice.   Reply   Report abuse  
Alexey Freelancer - 2012-04-16 19:19:25
Global vars is bad practice. From wikipedia: They are usually considered bad practice precisely because of their non-locality: a global variable can potentially be modified from anywhere (unless they reside in protected memory or are otherwise rendered read-only), and any part of the program may depend on it