The values look like they have been serialized using maybe_serialize( $data )
.
If that’s the case, then you can reverse that with maybe_unserialize( $original )
.
As per this answer, unserialize( $str )
will also create a PHP value from a stored representation.
Try:
$mydata="a:3:{i:0;s:6:"ozujak";i:1;s:7:"travanj";i:2;s:7:"svibanj";}";
$mydata = unserialize($mydata);
echo $mydata[0]; // ozujak
Related Posts:
- update_post_meta from data in multidimensional array created from a form
- update_post_meta() with a modified array?
- How to get update_post_meta output to include string length
- Retrieving multiple values to the Post Meta (using an array)
- Update post meta does not serialize array
- Print specific values stored in a post meta array
- Random element in get_post_meta array
- update_post_meta adding to array instead of replacing value
- Add Array record to Meta Post
- How i can extract data
- update_post_meta array issues
- Update Post Meta for Arrays — Remove/Replace Single Value from Multi Dimensional Array
- How do I retrieve a value from a multi – dimensional array using get_post_meta? [duplicate]
- Printing out JSON array returned [closed]
- How to match data in multidimensional array of post_meta_data?
- JSON webhook WP Automator – Help with Syntax [closed]
- WordPress is stripping escape backslashes from JSON strings in post_meta
- Nice way to print_r arrays
- WordPress: How to use post_class() in an echo
- How do I pass an array as an argument to a WP-CLI command?
- How to update single value in multi dimensional Post Meta?
- JSON not valid after json_encode posts
- Comma seperated list of ID’s as an array?
- How to store post meta in an array?
- post__in works but also prints the word Array
- if is_singular array not working as expected
- How do I update a specific object in an array, in user meta?
- Automatically adding meta data to posts or multiple query help
- Sort a custom post type array numerically
- How to add day number and initial to my post graph?
- How to validate register settings array
- Mass importing json data into custom fields (postmeta)
- How to use IN array properly in WordPress?
- var is undefined in a Gutenberg block
- Parsing php string in jquery [closed]
- WordPress Plugin Dev: Using array for WP options
- Only a part of array is stored in transient – what could be causing this?
- How to save data of an input field to an array
- Run a check for multiple meta key values
- Stuck with a Custom Field Check box Array
- How to display the “ratingValue” and “ratingCount” values generated by the KK Star Ratings plugin into my page’s recipe ld+json schema
- Compare with WP Meta Query
- How to Translate a string of an array inside a class?
- How to pass conditional array to wp_localize_script
- Modify foreach loop for social sharing links?
- Selecting and outputting results from DB with an array
- Struggling with array and foreach loop
- How to decipher the following array
- How to display line breaked meta values in table?
- Post meta as array looks like string instead of array
- Organizing and grouping an array by year
- Time & Date on Post – Time Ago Custom Function
- array_filter warning – wp-includes/post.php line 3148
- Can A Post Meta Field Store multiple values that are not in an array?
- Create Array from custom post type to display a slider
- Obtaining values from objects
- Remove “%” from strings in serialized arrays in wp_postmeta
- Remove empty terms from array, sort alphabetically, update back to repeating field
- WordPress loop by meta key that is an array? and how loop multiple arrays
- Matching slug terms from one array to those in array of WP_Term objects to output term names
- change order of images attached to post
- WP Page Options Array
- Array is not working in Filter?
- Can’t add classes using jQuery from a JSON string with get_body_class()
- Update value of a associative array with update_post_meta
- return paginate_comments_links() as array
- Inserting a random number into an array [closed]
- update_user_meta duplicates entry
- Echo 2 values from one key in Array with get_post_custom
- Sending simple variable on single page to WP JSON
- How can I update this array built from post meta data?
- What format is this and how to get value “lal” and “pila” from it
- Why are array_slice() and array_chunk() not working?
- Retrieve array items without page ID
- How do i fix this “call_user_func_array()” error
- How can I get the content of the current page in my loop while merging post-type
- wp_insert_post($post), add an array of values with update_post_meta
- How to output get_tags array list to select box
- How to add each letter, entity, special character from post title to array
- Remove item from post_meta array via AJAX
- Strange Behavior with update_option
- Show Tags of Custom Post Type outside of Loop
- “Undefined variable: array” Error In Displaying Post Tag
- wp_set_object_terms not accepting variable array
- Convert Custom Post Data to Javascript Array for Autocomplete
- How do I pull post from standard post format?
- how to remove/exclude html coding from json file while export?
- The writing ( with foreach) of the keys of an array of objects to a new array produces fatal error
- Fetching array of postmeta with $wpdb and in_array conditional
- Use $wp_customize->add_control to create a selectable “Designed/Powered By” choices select w/ link in footer?
- Echo the key from a select-box in Array with get_option (Settings API)
- Updating wordpress user meta data array (unexpected multiple arrays)
- Accessing array elements (get_pages)
- How do i output images from URL’s added to the same custom field key
- Fatal error in my WP
- SQL query add only posts with custom field to array
- Combine two foreach Arrays into one table row
- Populate Array with values from another arrray [closed]
- how to separate array with commas? [closed]
- Multipe array in meta_input