Print Value of Key

I am Trying to Print Value of Key From Json

json_decode($value->product);
// I think you got output for $value->product like this  "[{\"product\":\"AAAAAA\
"},{\"product\":\"WWWWW\"}]", if yes, then follow below code 

json_decode("[{\"product\":\"AAAAAA\"},{\"product\":\"WWWWW\"}]");


 foreach ($pro as $k) {
  echo $k->product;
 }  

LEAVE A REPLY

Please enter your comment!
Please enter your name here