Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PHPで次のことを試すと:
var_dump(json_decode("123")); var_dump(json_decode("true"));
私が期待するのは:
NULL NULL
しかし、私が実際に得るものは次のとおりです。
int(123) bool(true)
"123" と "true" は有効な JSON 文字列と見なされますか? それとも json_decode() の実装のバグですか?
ありがとう。