Shwaza Posted June 4, 2006 Share Posted June 4, 2006 Hi, I'm trying to set a variable which can be used throughout the script inside of a function, is that possible? (And I don't want to return things)Thanks :) Link to comment https://forums.phpfreaks.com/topic/11197-setting-functions-inside-variables/ Share on other sites More sharing options...
trq Posted June 4, 2006 Share Posted June 4, 2006 You could use a global but Id'e try to avoid it. Link to comment https://forums.phpfreaks.com/topic/11197-setting-functions-inside-variables/#findComment-41889 Share on other sites More sharing options...
Shwaza Posted June 4, 2006 Author Share Posted June 4, 2006 Thanks. Anyone have other alternatives? If not I guess I'll use globals. Link to comment https://forums.phpfreaks.com/topic/11197-setting-functions-inside-variables/#findComment-41897 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.