-1

I come across that array-looking object in a php file. Any clue what it is and how it works?

a:1:{i:2;a:2:{i:0;s:1:"m";i:1;s:10:"2013-02-11";}}
Jude
  • 2,353
  • 10
  • 46
  • 70

1 Answers1

1

What you have is a serialized string. Run it through unserialize to convert it into a usable format.

Replace $string in the example below.

$unserialized = unserialize( $string );
Nathan Dawson
  • 18,138
  • 3
  • 52
  • 58