jj20051 Posted December 8, 2009 Share Posted December 8, 2009 I have an array I need to pull a variable out of and echo it. I only need the URL inside the "announce" section of the array. You can see the array here: http://www.firemind.org/telonova.com/tests/index.php Any ideas? Link to comment https://forums.phpfreaks.com/topic/184331-array-help/ Share on other sites More sharing options...
rajivgonsalves Posted December 8, 2009 Share Posted December 8, 2009 whats your code on this anyways it should be echo $array_name['announce']; $array_name will be your variable name Link to comment https://forums.phpfreaks.com/topic/184331-array-help/#findComment-973155 Share on other sites More sharing options...
jj20051 Posted December 8, 2009 Author Share Posted December 8, 2009 and that, which I've tried produces this: http://www.firemind.org/telonova.com/tests/index.php Link to comment https://forums.phpfreaks.com/topic/184331-array-help/#findComment-973158 Share on other sites More sharing options...
rajivgonsalves Posted December 8, 2009 Share Posted December 8, 2009 try echo $array_name->announce; Link to comment https://forums.phpfreaks.com/topic/184331-array-help/#findComment-973160 Share on other sites More sharing options...
jj20051 Posted December 8, 2009 Author Share Posted December 8, 2009 Nope, it displays absolutely nothing then but atleast there was no error. http://www.firemind.org/telonova.com/tests/index.php Link to comment https://forums.phpfreaks.com/topic/184331-array-help/#findComment-973161 Share on other sites More sharing options...
jj20051 Posted December 8, 2009 Author Share Posted December 8, 2009 Apparently it requred this: $torrent_data->result['announce'] Link to comment https://forums.phpfreaks.com/topic/184331-array-help/#findComment-973163 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.