julian0x Posted July 22, 2009 Share Posted July 22, 2009 i want to have this at the top of page: echo $otheruser; but it won't echo unless i declare $otheruser BEFORE i try echoing it. (i declare & assign value later on page) *-> is there ANYWAY around this? i'm using up my api calls too quickly; i want to post (to Twitter), then parse the XML i get back. i can echo variables AFTER that (getting returned XML) on page, but can't figure out how to do it before. thnx. Quote Link to comment https://forums.phpfreaks.com/topic/167042-variables-echoing-before-declaring/ Share on other sites More sharing options...
Adam Posted July 22, 2009 Share Posted July 22, 2009 How could you echo out a variable that hasn't been given a value? You need to re-think your logic. Quote Link to comment https://forums.phpfreaks.com/topic/167042-variables-echoing-before-declaring/#findComment-880749 Share on other sites More sharing options...
julian0x Posted July 22, 2009 Author Share Posted July 22, 2009 it HAS been given a value- LATER on the page. is it possible for me to echo this way? so far, the only way i can figure out how to do it is with 2 api calls, for the xml to parse. Quote Link to comment https://forums.phpfreaks.com/topic/167042-variables-echoing-before-declaring/#findComment-880780 Share on other sites More sharing options...
Daniel0 Posted July 22, 2009 Share Posted July 22, 2009 No. Quote Link to comment https://forums.phpfreaks.com/topic/167042-variables-echoing-before-declaring/#findComment-880784 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.