Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function log_array()
- {
- $arArgs = func_get_args();
- $sResult = '';
- foreach ($arArgs as $arArg) {
- $sResult .= "\n\n" . print_r($arArg, true);
- }
- if (!defined('LOG_FILENAME')) {
- define('LOG_FILENAME', $_SERVER['DOCUMENT_ROOT'] . '/bitrix/log.txt');
- }
- AddMessage2Log($sResult, 'log_array -> ');
- }
Add Comment
Please, Sign In to add comment