Ecommerce Shopify WordPress Discussion

how to remove the extra string from serialize php [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed yesterday. The community is reviewing whether to reopen this question as of yesterday. Improve this question I have a problem with serialization. so my problem is actually from the database. not from php itself. anyways look at this string serialization: here's how the 'format' of the serialization when it stores in the DB : s:22:"a:1:{i:0;s:5:"30223";}"; and here's what is the var_dump says : string(23) "a:1:{i:0;s:6:"asdasd";}" so, I want to become like this when it stores in the DB (remove the s:22"";) : a:1:{i:0;s:5:"30223";} how to achieve this? btw, i use default xampp for web server and database. EDIT : i'm sorry i did not realize tehere is a comment... so actually i use WP. and I tried to store post_meta. here's the code when store the post_meta : add_post_meta($post_id, '_woodmart_linked_use_product_image', maybe_serialize(array($slug_attr))); $slug_attr is just a string
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.