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. 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. 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. 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. Link to comment https://forums.phpfreaks.com/topic/167042-variables-echoing-before-declaring/#findComment-880784 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.