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 8712197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:03:41+00:00 2026-06-13T05:03:41+00:00

I have run the for loop in php , i got the following output

  • 0

I have run the for loop in php , i got the following output …
I am trying to store 1st value in other array and second value other array… Please any one will guide me to do it !

Or how i can store in two dimensional array

Array
(
    [0] => 44
    [1] => 810
)
Array
(
    [0] => 0
    [1] => 280
)
Array
(
    [0] => 73
    [1] => 279
)
Array
(
    [0] => 0
    [1] => 278
)
Array
(
    [0] => 0
    [1] => 277
)
Array
(
    [0] => 0
    [1] => 276
)
Array
(
    [0] => 87
    [1] => 840
)
Array
(
    [0] => 0
    [1] => 275
)
Array
(
    [0] => 0
    [1] => 274
)
Array
(
    [0] => 0
    [1] => 273
)
Array
(
    [0] => 6
    [1] => 271
)
Array
(
    [0] => 0
    [1] => 272
)
Array
(
    [0] => 0
    [1] => 269
)
Array
(
    [0] => 3
    [1] => 267
)
Array
(
    [0] => 0
    [1] => 268
)
Array
(
    [0] => 3
    [1] => 259
)
Array
(
    [0] => 108
    [1] => 124
)
Array
(
    [0] => 82
    [1] => 239
)
Array
(
    [0] => 221
    [1] => 238
)
Array
(
    [0] => 30
    [1] => 160
)
Array
(
    [0] => 3
    [1] => 161
)
Array
(
    [0] => 65
    [1] => 168
)
Array
(
    [0] => 73
    [1] => 169
)
Array
(
    [0] => 0
    [1] => 170
)
Array
(
    [0] => 0
    [1] => 248
)
Array
(
    [0] => 192
    [1] => 226
)
Array
(
    [0] => 209
    [1] => 222
)
Array
(
    [0] => 80
    [1] => 223
)
Array
(
    [0] => 182
    [1] => 273
)
Array
(
    [0] => 79
    [1] => 183
)
Array
(
    [0] => 73
    [1] => 184
)
Array
(
    [0] => 73
    [1] => 185
)
Array
(
    [0] => 6
    [1] => 186
)
Array
(
    [0] => 73
    [1] => 187
)
Array
(
    [0] => 0
    [1] => 188
)
Array
(
    [0] => 48
    [1] => 270
)
Array
(
    [0] => 138
    [1] => 190
)
Array
(
    [0] => 191
    [1] => 370
)
Array
(
    [0] => 152
    [1] => 192
)
Array
(
    [0] => 12
    [1] => 200
)
Array
(
    [0] => 200
    [1] => 210
)
Array
(
    [0] => 0
    [1] => 213
)
Array
(
    [0] => 21
    [1] => 212
)
Array
(
    [0] => 124
    [1] => 214
)
Array
(
    [0] => 0
    [1] => 215
)
Array
(
    [0] => 0
    [1] => 216
)
Array
(
    [0] => 133
    [1] => 217
)
Array
(
    [0] => 6
    [1] => 260
)
Array
(
    [0] => 73
    [1] => 285
)
Array
(
    [0] => 73
    [1] => 284
)
Array
(
    [0] => 0
    [1] => 283
)
Array
(
    [0] => 73
    [1] => 286
)
Array
(
    [0] => 73
    [1] => 287
)
Array
(
    [0] => 0
    [1] => 288
)
Array
(
    [0] => 73
    [1] => 289
)
Array
(
    [0] => 0
    [1] => 290
)
Array
(
    [0] => 76
    [1] => 291
)
Array
(
    [0] => 76
    [1] => 292
)
Array
(
    [0] => 0
    [1] => 293
)
Array
(
    [0] => 0
    [1] => 294
)
Array
(
    [0] => 0
    [1] => 295
)
Array
(
    [0] => 0
    [1] => 296
)
Array
(
    [0] => 0
    [1] => 297
)
Array
(
    [0] => 3
    [1] => 298
)
Array
(
    [0] => 0
    [1] => 299
)
Array
(
    [0] => 0
    [1] => 300
)
Array
(
    [0] => 3
    [1] => 301
)
  • 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-13T05:03:42+00:00Added an answer on June 13, 2026 at 5:03 am

    You can use

    $a = $b = array();
    foreach ( $array as $list ) {
        list($a[], $b[]) = $list;
    }
    

    See Live Demo

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a php loop that I want to constantly run. Currently if you
I have a nice dataset loop working, but I need to run another loop
I have this class in which I run a for loop 10 times. This
I have a for loop I'd like to run in bash like: for i
I have rm -i inside a for loop but when I run it, it
I have in my Java application a thread that run a while(True) loop with
How to run multiple dos commands? I have a for loop, which runs detection
gurus. I have a perl script which needs to run in an infinite loop
As you can see below, I have Parallel.For loop. If run the program while
I have a long running php script which is basically an infinite loop listening

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.