A
A
Artem2017-02-06 13:30:02
PHP
Artem, 2017-02-06 13:30:02

String processing?

I create a new type of property, on the output of the product page, the values ​​\u200b\u200bcome in this form.
[DESCRIPTION] => a:2:{i:0;s:24:"Outside cover";i:1;s:0:"";}
[~DESCRIPTION] => a:2:{i:0 ;s:24:"Outside cover";i:1;s:0:"";}
How can they be processed to get a value?
json_decode tried - something does not come out.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita, 2017-02-06
@beardedman

because it's not json but a serialized structure
unserialize

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question