I am talking about Common.php file of CodeIgniter framework(system/core folder).
// not required to answer the question though!
I have been going through the code and couldn't make sense of these particular lines at start of load_class function.
static $_classes = array();
// Does the class exist? If so, we're done...
if (isset($_classes[$class]))
{
return $_classes[$class];
My doubt specifically is, isn't it pointless to declare a variable to an empty array, and immediately check if some key exists in that array? or am I missing something related to static keyword?