source: branches/beta/html/test/adachi/PLLagger/PLLagger/Util.php @ 15120

Revision 15120, 459 bytes checked in by adati, 17 years ago (diff)

1.4.2betaのマージ

Line 
1<?php
2
3class PLLagger_Util {
4    public static function log ($corrent_phase, $msg) {
5        echo "[$corrent_phase] " . mb_convert_encoding($msg, 'EUC-JP', 'UTF-8') . "\n";
6    }
7
8    public static function p ($var, $var_dump = true) {
9        echo "++++++++ debug start ++++++++\n";
10
11        if ($var_dump) {
12            var_dump($var);
13        }
14        else {
15            print_r($var);
16        }
17
18        echo "++++++++ debug end ++++++++\n";
19    }
20
21}
22
23?>
Note: See TracBrowser for help on using the repository browser.