Format similar to Json -


i running problem, don't know data format is:

"s:70:"a:2:{s:3:"url";s:28:"https://www.websitetest.com/";s:4:"text";s:0:"";}";"

it looks json not, has ever seen this?

it looks serialized php array. try execute following code

<?php  $array = array("url" => "https://www.websitetest.com/", "text" => ""); echo serialize($array); ?> 

and receive following output:

a:2:{s:3:"url";s:28:"https://www.websitetest.com/";s:4:"text";s:0:"";} 

as can see different, because in practice have double serialize. executing folling code woyu have string.

<?php $string = 'a:2:{s:3:"url";s:28:"https://www.websitetest.com/";s:4:"text";s:0:"";}";';   echo serialize($string); ?> 

Comments