[ create a new paste ] login | about

Link: http://codepad.org/a4X0167I    [ raw code | output | fork ]

PHP, pasted on Jan 20:
<?php

    $array = array (
      0 => 
        array (
          'id' => '9',
          'gallery_id' => '2',
          'picture' => '56475832.jpg'
        ),
      1 => 
        array (
          'id' => '8',
          'gallery_id' => '2',
          'picture' => '20083622.jpg'
        ),
      2 => 
        array (
          'id' => '7',
          'gallery_id' => '2',
          'picture' => '89001465.jpg'
        ),
      3 => 
        array (
          'id' => '6',
          'gallery_id' => '2',
          'picture' => '47360232.jpg'
        ),
      4 => 
        array (
          'id' => '5',
          'gallery_id' => '2',
          'picture' => '4876713.jpg'
        ),
      5 => 
        array (
          'id' => '4',
          'gallery_id' => '2',
          'picture' => '5447392.jpg'
        ),
      6 => 
        array (
          'id' => '3',
          'gallery_id' => '2',
          'picture' => '95117187.jpg'
        )
    );

    var_dump(array_keys($array));


Output:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
array(7) {
  [0]=>
  int(0)
  [1]=>
  int(1)
  [2]=>
  int(2)
  [3]=>
  int(3)
  [4]=>
  int(4)
  [5]=>
  int(5)
  [6]=>
  int(6)
}


Create a new paste based on this one


Comments: