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 :) Quote 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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/11197-setting-functions-inside-variables/#findComment-41897 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.