3
你好堆栈溢出,
这是我的第一篇文章,我有一个问题,我需要解析这个文本,并将其变成一个数组(它从数据库)。PHP解析表/数组字符串
"TableToKeyValues"
{
"inventory"
{
"slot2"
{
"amount" "10"
"item" "wood_plank"
}
"slot1"
{
"amount" "10"
"item" "metal"
}
"slot3"
{
"amount" "10"
"item" "plastic"
}
}
}
谢谢rtm516。
这看起来不像JSON ... –
它没有,并没有工作。感谢您的尝试 – rtm516
我认为这是一个JSON。数据来自哪里?在插入数据库之前。 – aldrin27