LoginSignup
0
0

Deserialize Unserialize Serialize Online Test Tool 【PHP】

Last updated at Posted at 2023-09-30

See the Pen unserialize online test by John Doe (@04) on CodePen.

リアルタイムで変換ができます。WordPressのデータベースの内容を確認したいときに便利です。
シリアライズだけしたい場合は、var_exportを編集してください。

参考

テスト unserialize オンライン - general PHP functions

Unserialize - PHP, JSON, Base64

unserialize - Online Tool

実装したコード

print_r.php
<?php
header('Access-Control-Allow-Origin: *');
print_r(unserialize(file_get_contents('php://input')));
var_dump.php
<?php
header('Access-Control-Allow-Origin: *');
var_dump(unserialize(file_get_contents('php://input')));
var_export.php
<?php
header('Access-Control-Allow-Origin: *');
var_export(unserialize(file_get_contents('php://input')));
serialize.php
<?php
header('Access-Control-Allow-Origin: *');
$input = file_get_contents('php://input');
if ($input) {
    echo eval("return serialize($input);");
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0