diff --git a/app/helper.php b/app/helper.php index fef57b3..f9297c2 100644 --- a/app/helper.php +++ b/app/helper.php @@ -51,14 +51,17 @@ function _randomStr(int $length, string $keyspace = * Print variable inside of a
and exit
*
* @param mixed[] $output The variable (single/array) to print
+ * @param bool $die Call die(); after printing
*
* @return void Nothing
*/
-function _log($output): void {
+function _log($output, bool $die = true): void {
echo '';
var_dump($output);
echo '
';
- die();
+ if ($die) {
+ die();
+ }
}
//-------------------------------------//