Answers for "get php variable from json object"

PHP
2

access json with php

<?php

$data = '{
	"name": "Aragorn",
	"race": "Human"
}';

$character = json_decode($data);
echo $character->name;
Posted by: Guest on August-20-2020
2

how to get data from json array in php

$data = json_decode($json);
Posted by: Guest on August-15-2020

Browse Popular Code Answers by Language