Jump to content

Function to shift keys in array, with values...


aximbigfan

Recommended Posts

Is there a PHP function that will shift an array around like this:

 

BEFORE:

ARRAY

  { 

      a = 29

      b = 87

    }

 

AFTER:

ARRAY

  { 

      29 = a

      87 = b

    }

 

I could do this easily, but wanted to know if there is already a function to do the same.

 

Thanks,

Chris

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.