我需要转换json文件并将其传递给php变量,以便我可以将它们存储在数据库中。
SELECT
count(teacher),
count(organizer),
count(administrator),
organization_id
FROM users
WHERE
teacher = 1
or organizer = 1
or administrator = 1
GROUP BY organization_id;
我尝试了file_get_contents和fopen,fread
输出:
未打印Arrayjson
我没有得到promo_id的值,而是当我打印$ array时我得到输出为Array。
请建议。感谢