skip to Main Content

Php – Unserialize string incoming string

I have serialized array. It is serialized into string looking like: *field1_name*|*field1_value*;*field2_name*|*field2_value*;*field3_name*|*field3_value* etc. I need to get value of field 3. At this moment i get it by: explode("*|*", explode("*;*", serialized_array)[3])[1] but i'm almost sure that there is better way…

VIEW QUESTION
Back To Top
Search