Question

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top