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! Quote 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] Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.