Skip to content

Commit 3b60fcd

Browse files
authored
Solve problem: Display object/array using print_r
1 parent 647a694 commit 3b60fcd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

decode.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@
1414
$token='eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.IntcInN0YXR1c1wiOlwic3VjY2Vzc1wiLFwiZGF0YTFcIjpcInRlc3QxXCIsXCJkYXRhMlwiOlwidGVzdDJcIixcImRhdGEzXCI6XCJ0ZXN0M1wiLFwiZGF0YTRcIjpcInRlc3Q0XCIsXCJkYXRhNVwiOlwidGVzdDVcIn0i.lTHo7zbetlA2su017EVukpSzL1Zj60k7mEZZHxAlz7k';
1515
$decode = JWT::decode($token, $key, array('HS256'));
1616
print $decode."\n";
17-
print json_decode($decode)."\n";
17+
$object=json_decode($decode);
18+
print_r($object);
19+
print "\n";

0 commit comments

Comments
 (0)