Title: maybe_unserialize(),
Last modified: August 30, 2016

---

# maybe_unserialize(),

 *  [vcb](https://wordpress.org/support/users/vcb/)
 * (@vcb)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/maybe_unserialize/)
 * Dear Dev-Team,
 * we are having troubles writing the correct “data” into our database.
    our code
   input is: maybe_unserialize(‘a:1:{i:0;s:5:”‘.$post->ID.'”‘),
 * But the output looks different:
    s:20:”a:1:{i:0;s:5:”24334″”;
 * The above code need to look like: a:1:{i:0;s:5:”24334″;}
    But it does always 
   pre-add the s:20:”STRING” to our string.
 * Is there any solution available NOT adding the s:20:?
    Many thanks.

The topic ‘maybe_unserialize(),’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [vcb](https://wordpress.org/support/users/vcb/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/maybe_unserialize/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
