Last active
June 28, 2018 13:55
-
-
Save Itachi261092/f5dc05d608ad20558563 to your computer and use it in GitHub Desktop.
[1C-Bitrix / 1С-Битрикс] Debug short function / Короткая функция для дебага
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Debug | |
function dbg($res, $hidden = false, $die = false){ | |
if ($hidden == true) $style = ' style="display: none;"'; | |
echo '<pre'.$style.'>'; print_r($res); echo '</pre>'; | |
if ($die == true) die(); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment