graham23s Posted September 9, 2007 Share Posted September 9, 2007 Hi Guys, when i try out and this code: $array = array($nsubject); echo $array; i get: ArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArray but if i just echo out $nsubject i get the proper data echoed i take it the above is wrong if it echoes out the word array? cheers Graham Quote Link to comment https://forums.phpfreaks.com/topic/68594-array-question/ Share on other sites More sharing options...
BlueSkyIS Posted September 9, 2007 Share Posted September 9, 2007 what is in $nsubject? Quote Link to comment https://forums.phpfreaks.com/topic/68594-array-question/#findComment-344814 Share on other sites More sharing options...
wildteen88 Posted September 9, 2007 Share Posted September 9, 2007 To display an array you'll want to use print_r: $array = array($nsubject); echo '<pre>' . print_r($array, true) . '</pre>'; Quote Link to comment https://forums.phpfreaks.com/topic/68594-array-question/#findComment-344860 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.