Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
$obj = json_decode($json);
$result=array();
foreach ($obj as $o) $result[]=$o["PAN"];
echo json_encode($result);
json_encode(
array_column(
json_decode('[{"PAN":"1234"},{"PAN":"123456789"}]', true),
'PAN'
)
);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question