Login   Register  
PHP Classes
elePHPant
Icontem

Global vars is bad practice.

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP Proxy Checker  >  All threads  >  Global vars is bad practice.  >  (Un) Subscribe thread alerts  
Subject:Global vars is bad practice.
Summary:Package rating comment
Messages:1
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  
Picture of Alexey Freelancer
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