回答編集履歴

1

加筆修正

2019/04/22 08:49

投稿

退会済みユーザー
test CHANGED
@@ -1,3 +1,21 @@
1
1
  json_encode() つかえばすぐって気がしますが。
2
2
 
3
3
  [PHP: json_encode - Manual](https://www.php.net/manual/ja/function.json-encode.php)
4
+
5
+
6
+
7
+ ```php
8
+
9
+ $arr = ["result" => "0", "auth" => "true"];
10
+
11
+ echo json_encode($arr);
12
+
13
+ ```
14
+
15
+ ---
16
+
17
+ ![イメージ説明](d406cf6ee1fc5e6e16bd697635597e31.png)
18
+
19
+ ---
20
+
21
+ だから、データベースの読み出しと判定処理にくっつければ。