taith Posted November 16, 2006 Share Posted November 16, 2006 question... when i have internal functions (function within a function) globalized variables dont pass between them or out of the internal function atall ??? why ??? Link to comment https://forums.phpfreaks.com/topic/27461-internal-functions/ Share on other sites More sharing options...
Psycho Posted November 16, 2006 Share Posted November 16, 2006 Personally I see no reason to have functions inside other function, but global variables are accessible from "internal" functions. Globalized variables do pass to internal functions. So, there must be a problem in the code. Link to comment https://forums.phpfreaks.com/topic/27461-internal-functions/#findComment-125585 Share on other sites More sharing options...
taith Posted November 17, 2006 Author Share Posted November 17, 2006 yes... sorry... that was my stupidity...besides... functions inside functions is a GREAT idea! Link to comment https://forums.phpfreaks.com/topic/27461-internal-functions/#findComment-126118 Share on other sites More sharing options...
Psycho Posted November 17, 2006 Share Posted November 17, 2006 [quote author=taith link=topic=115199.msg469541#msg469541 date=1163771903]besides... functions inside functions is a GREAT idea![/quote]Care to elaborate? In my experience, if I need a function to do different things depending where it is called from I just pass it different criteria and have it work accordingly. Plus, I would think that creating functions dynamically would be debugging nightmare. Link to comment https://forums.phpfreaks.com/topic/27461-internal-functions/#findComment-126149 Share on other sites More sharing options...
taith Posted November 17, 2006 Author Share Posted November 17, 2006 simple... when i get one function right, and imbed it into another function, i can run it dozens of times, with one line of code... if you prefer, pm me your email address... i'll send you a few examples :-) Link to comment https://forums.phpfreaks.com/topic/27461-internal-functions/#findComment-126158 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.