なんかあるやろと思い探すと当然ありました。Googleで検索しても意外と言及している記事が出てこないので、知らん人もいるのではないでしょうか。 use Eccube\Util\Cache; use Eccube\Util\EntityUtil; use Eccube\Util\Str; use Eccube\Common\Constant; $outputValue = function ($title, $name, $value, $note) { ob_start(); if (is_object($value)) { echo get_class($value); } else { var_dump($value); } $result = ob_get_clean(); echo sprintf("■%s\n%s : %s %s\n\n", $title, $name, $res
![EC-CUBE3 便利な静的メソッド | 社員ブログ | リグレックス株式会社 | REGREX Co.,Ltd.](https://cdn-ak-scissors.b.st-hatena.com/image/square/7924a0d20dbeac997a6489b7daf89e087c239508/height=288;version=1;width=512/https%3A%2F%2Fblog.regrex.jp%2Fwp-content%2Fuploads%2Fsites%2F2%2F2017%2F04%2Ffavicon.png)