Jump to content

Recommended Posts

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 arrays
problem is when I go to foreach ($arr as $value) echo $value
it 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-pear2

echo as

Apple Apple2
Orange Orange2
Pear Pear2

Thanks in advance!
Link to comment
https://forums.phpfreaks.com/topic/22532-returning-only-values-of-a-chunked-array/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.