php - Get seperate keys and values from string where all data is inline -
i using custom meta box class adding meta boxes in wordpress.
1 of fields using repeater field add multiple blocks of same fields 1 post.
when retrieve data, keys , values combined inside 1 string. see screenshot:
inside slide_re_
can see keys , values lot of different characters added.
need string
'slide_text_field_title => 'slide 1'
and rest of values.
how extract or filter data string?
what have there serialized array.
to convert array, use:
unserialize($array['slide_re_'])
Comments
Post a Comment