1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
- <script type="text/javascript" src="http://localhost:8055/chatroom/res/js/jquery.cookie.js"></script>
- <?php
- $dd = '{"friend_msg":"555","friendid":2105055520,"friend_nickname":"byjames","create_at":"2019-05-12 星期日 20:01:58","status":1}';
- $aa = ' {"friend_msg":"dff123","friendid":2105055520,"friend_nickname":"byjames","create_at":"2019-05-12 星期日 20:01:58","status":1}';
- $cc2 = ' {"friend_msg":"dff1234","friendid":2105055520,"friend_nickname":"byjames","create_at":"2019-05-12 星期日 20:01:58","status":1}';
- $a = json_decode($dd, true);
- $b = json_decode($aa, true);
- echo "<br>";
- echo "<br>";
- $m = $a + $b;
- $data[] = $a;
- $data[] = $b;
- $aa = json_encode($data, JSON_UNESCAPED_UNICODE);
- $cc = json_decode($aa, true);
- $dam[] = $cc;
- $dam[] = json_decode($cc2, true);
- echo count($a);
- echo count($b, 1);
- ?>
|