php - デバッグ出力用の関数
function dump($var, $is_return = false)
{
$output = nl2br(str_replace(" ", " ", print_r($var, true)));
if ($is_return) return $output;
echo nl2br(str_replace(" ", " ", print_r($var, true)));
}
function dump($var, $is_return = false)
{
$output = nl2br(str_replace(" ", " ", print_r($var, true)));
if ($is_return) return $output;
echo nl2br(str_replace(" ", " ", print_r($var, true)));
}