thanks for your time:
First of all I have the following Json string
$jsonarr = '["somestring1", "somestring2","somestring3"]'
which I want to convert to a PHP array
$decodedjson = json_decode($jsonarr,TRUE);
and then iterate through all of the members of the array, something such as :
for ($i=0;$i<3;$i++)
{
echo $decodedjson[$i];
}
First of all, is it possible to get the length of this array?
Second, this code throws an error. I am not sure where I am doing it wrong.
Thank you for your time.