This commit is contained in:
me committed 2026-07-23 15:29:13 +07:00
commit 9ec08a3e44
36 files changed
+2790

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
<?php
if (!function_exists('ndg')) {
function ndg(...$vars) {
if (PHP_SAPI === 'cli') {
var_dump(...$vars);
} else {
ob_start();
var_dump(...$vars);
$output = ob_get_clean();
echo '<pre>';
echo htmlspecialchars($output, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
echo '</pre>';
}
}
}
if (!function_exists('nde')) {
function nde(...$vars) {
ndg(...$vars);
exit(1);
}
}