Quantcast
Channel: Specific order for multidimensional associative array - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Specific order for multidimensional associative array

$
0
0

I have a multidimensional associative array containing more than 2 columns.

I am trying to create a function that orders the array with the value of two specific columns. For example if value_column_3 ('hangs_from') from position 4 in the array depends from value_column_1 ('old_id') from position 0 in the array, I have to move position 4 of the array right after position 0.

It's sort of bubble sort algorithm.

How can I access and specific position from this multidimensional associative array so I can do the comparison?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images