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 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? 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>'; Link to comment https://forums.phpfreaks.com/topic/68594-array-question/#findComment-344860 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.