I've search and search but what is this for a DATA FORMAT:?
a:6:{s:14:"component_mode";s:6:"aswdas";s:14:"payment_method";s:0:"";s:16:"channel_order_id";s:5:"75614";s:17:"channel_final_fee";i:0;s:12:"transactions";a:0:{}s:6:"tax_id";N;}
I find it in Magento in a Order Export und "additional_data",
and in Magento session data itself:
mobileswitcher_admin|a:1:{s:23:"_session_validator_data";a:4:{s:11:"remote_addr";s:0:"";s:8:"http_via";s:0:"";s:20:"http_x_forwarded_for";s:0:"";s:15:"http_user_agent";s:0:"";}}
How can I get the data from that string? Is it a JSON like format? Is there any function I can use to encode/decode?
Thanks in advance!
Tyv
this is a serialized array
you can use unserialize()
to convert it into an array
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.