method output documentation in bbn\Cron\Runner

function($name = '', $log = '') { $output = ''; if ($name === false) { $output = '}' . PHP_EOL; } else if ($name === true) { $output = '{' . PHP_EOL; } else if ($name) { $is_number = bbn\Str::isNumber($log); $is_boolean = \is_bool($log); $is_string = \is_string($log); if (!$is_number && !$is_boolean && !$is_string) { $log = X::getDump($log); } else if ($is_boolean) { $log = $log ? 'true' : 'false'; } $output = ' "' . bbn\Str::escapeDquotes($name) . '": ' . ($is_string ? '"' : '') . ($is_string ? bbn\Str::escapeDquotes($log) : $log) . ($is_string ? '"' : '') . ',' . PHP_EOL; } if (!empty($output)) { ob_start(); echo $output; ob_end_flush(); } }

BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.