brainstem Posted September 29, 2006 Share Posted September 29, 2006 I can't quite figure this one out, need some help widdit.pulling all content from a file via file_get_content('massive.txt');and chunking it all into 2 word arraysproblem is when I go to foreach ($arr as $value) echo $valueit just spits out a rediculous amout of 'Array' echos.tried a for loop as well with no luck.how can I take a huge chunked array and strip out thier contents, but in the proper sequence.i.e.Massive Array (roughly 1700 internal unassigned (per chunk) arrays with 2 words each)main arr arr 0-apple 1-apple2 arr 0-orange 1-orange2 arr 0-pear 1-pear2echo asApple Apple2Orange Orange2Pear Pear2Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/22532-returning-only-values-of-a-chunked-array/ Share on other sites More sharing options...
sasa Posted September 29, 2006 Share Posted September 29, 2006 try [code]foreach ($arr as $value) echo implode(' ',$value);[/code] Link to comment https://forums.phpfreaks.com/topic/22532-returning-only-values-of-a-chunked-array/#findComment-101153 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.