0

I would like to display the text 'hamsters repeat one'.

My array: a:1:{i:0;s:19:"hamsters repeat one";}

Should I use var_dump for this? In PHP. I know how to get the array data out of the database (I am using get_post_meta a wordpress feature for this) .

Should it be something like this? : var_dump $variablewhicharrayhasbeenstored; Thank-you

1
  • 1
    That's a serialized array. Assuming PHP.. See unserialize Commented Apr 23, 2013 at 18:31

1 Answer 1

2

Use unserialize($myvar) to decode that string into an array.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.