Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 3 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /