<?php
function Debug2JsConsole ( $var, $name = false, $title=false ) {
if ( $title ) {
echo "\n<script>\n";
echo "\tconsole.log( '===================== " . htmlspecialchars( $title ) . " =========================' );\n";
echo "\n</script>\n";
}
if ( $name ) {
} else {
$name = 'Debug2JsConsole :: (Name not given)';
}
echo "\n<script>\n";
if ( $name ) {
}
if ( $className ) {
echo "\tconsole.log( 'CLASS DEFAULT VALUES:' );\n";
}
echo "\tconsole.log( 'CLASS METHODS:' );\n";
}
}
echo "\tconsole.log( 'OBJECT VALUES:' );\n";
} else {
echo "\tconsole.log( 'VALUE[S]:' );\n";
}
echo "</script>\n";
} else {
echo "\n<script>\n"
. "</script>\n";
}
}