Hi am having a little from with json array. when i try to get the values out of json array.
$data['payment'] = $this->admin->get_payment_settings(); $value = $data['payment']->json; echo $value['username'];
Hi am having a json array in database. using my controller i am getting the filed json. When i do a var_dump($value) array look like this
i want to get each value out of this array.
echo $value['username']; echo $value['password'];
When i try to do this i get the error
A PHP Error was encountered Severity: Warning Message: Illegal string offset 'username' Filename: controllers/administrator.php Line Number: 620
Can some one help me to get the values out of json array. tnx..