我使用json_encode
方法這樣插入PHP數組到MySQL:警告:json_decode()預計參數1是串
["11","10","4"]
現在我需要轉換到PHP數組:
$me = ["11","10","4"];
$you = json_decode($me, true);
echo $you;
但在結果我看到: Warning: json_decode() expects parameter 1 to be string, array given in C:\xampp\htdocs\test\test.php on line 5
如何解決這個問題?
[當有人回答我的問題,我應該怎麼辦(http://stackoverflow.com/help/someone-answers) – RiggsFolly