I'm having problems decoding from php a json created with javascript JSON.stringfy. Maybe the problem is that the object has arrays. The JSON and the core are:
$jsonString = "{"tabLabels":["tab1","tab2","tab3","tab4","tab5"],"tabBgs":["21","2","3","0","4"],"tabPublico":[0,0,1,1,0],"fuente":"2","size":"17px"}";
$jsonObj = json_decode($jsonString);
echo $jsonObj->obj;
$tabs = $jsonObj->tabPublico
for ($i=0;$i<strlen($tabs);$i++)
{
echo $tabs[i];
}
The "echoes" don't show anything.
Thank you for your help. Oscar.