Jump to content

aleksy

New Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by aleksy

  1. Hello, I have an array which consists of many arrays. <?php $array = array(1 => array(1,10,100,101,102,103), 2 => array(104,105,106,107,108,109), 3 => array(11,110,111,112,113,114), 4 => array(115,116,117,118,119,12), 5 => array(120,121,122,123,124,125), 6 => array(126,127,128,129,13,130), 7 => array(131,132,133,134,135,136), 8 => array(137,138,139,14,140,141), 9 => array(142,143,144,145,146,147), 10 => array(148,149,15,150,151,152), 11 => array(153,154,155,156,157,158), 12 => array(159,16,160,161,162,163), 13 => array(164,165,166,167,168,169), 14 => array(17,170,171,172,173,174), 15 => array(175,176,178,18,19,2), 16 => array(20,21,22,23,28,29), 17 => array(3,30,31,32,33,34), 18 => array(35,36,37,38,39,4), 19 => array(40,41,42,43,44,45), 20 => array(46,47,48,49,5,50), 21 => array(51,6,69,7,8,86), 22 => array(87,88,89,9,90,91), 23 => array(92,93,94,95,96,97), 24 => array(98,99)); ?> How can I get numbers from first array and store them in a new array? I want to do the same with the other arrays. Can somebody help me to write a function where I input $array and get $array1 = array(1,10,100,101,102,103), $array2 = array(104,105,106,107,108,109) etc. so I can use this data on my website? Thank you for your help!
×
×
  • 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.