Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8919565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:03:48+00:00 2026-06-15T06:03:48+00:00

i just cooked up a scraping script and it works. Now i get this

  • 0

i just cooked up a scraping script and it works. Now i get this output:

Array
(
    [0] => Array
        (
            [0] => example stuff
            [1] => example stuff
            [2] => example stuff
            [3] => example stuff
        )

[1] => Array
    (
        [0] => /spellen/thumbs/a/aladdinwildride_6524.jpg
        [1] => /spellen/thumbs/t/toystory3_3476.jpg
        [2] => /spellen/thumbs/f/fred-flintstone-bobsled_2180.jpg
        [3] => /spellen/thumbs/m/madagascar-2.jpg
    )

[2] => Array
    (
        [0] => spel Alladin Wide Rit
        [1] => spel Toy Story 3
        [2] => spel Bedrock Bobsledding blowout
        [3] => spel Madagascar 2 Ontsnap naar Afrika

    )

[3] => Array
    (
        [0] => /spellen/cartoons/2096/alladin-wide-rit.html
        [1] => /spellen/cartoons/1989/toy-story-3.html
        [2] => /spellen/cartoons/1362/bedrock-bobsledding-blowout.html
        [3] => /spellen/cartoons/237/madagascar-2-ontsnap-naar-afrika.html

    )

[4] => Array
    (
        [0] => l
        [1] => l
        [2] => l
        [3] => l

    )

[5] => Array
    (
        [0] => Speel Alladin Wide Rit online
        [1] => Speel Toy Story 3 online
        [2] => Speel Bedrock Bobsledding blowout online
        [3] => Speel Madagascar 2 Ontsnap naar Afrika online

    )

[6] => Array
    (
        [0] => e
        [1] => e
        [2] => e
        [3] => e

    )

[7] => Array
    (
        [0] => /images/thumb_frame_top.gif
        [1] => /images/thumb_frame_top.gif
        [2] => /images/thumb_frame_top.gif
        [3] => /images/thumb_frame_top.gif

    )

[8] => Array
    (
        [0] => f
        [1] => f
        [2] => f
        [3] => f

    )

)

Now I would like a simple foreach that return me each $matches[1][0], $matches[2][0] and $matches[3][0].

I’ve been trying to get this for hours but no luck. Can anybody help me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T06:03:49+00:00Added an answer on June 15, 2026 at 6:03 am
    $result = array();
    foreach ($matches as $match) {
        $result[] = array(
            $match[1],
            $match[2],
            $match[3],
        );
        // or unset($match[0]); if you don't need the original array anymore
        // or array_splice($match, 0, 1); if you also want to rearrange the keys
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a quickly cooked up script, but I am having some difficulty due
This is probably a stupid question, but my brain is just cooked enough I
My problem is with the request headers. This is a little script I cooked
Just learning the world of jquery, and all my googling gives examples like this:
Just a knowledge question which I would like to ask: For example, I have
Just see this: SELECT clientid,clientname,startdate,enddate,age FROM clients WHERE clientid IN (1,2,3,4,5) AND CASE WHEN
Just a simple question, but can't get an answer on my own. In memory
Just starting to figure Python out. I've read this question and its responses: Is
If I try to run Delphi 7, I get this frightening message: Borland license
Just a quick question on the iphone technology within this business card reader http://www.youtube.com/watch?v=F8z6pcxdrPo

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.