lychee/php/Modules/Response.php
2016-03-24 21:41:41 +01:00

25 lines
323 B
PHP

<?php
namespace Lychee\Modules;
final class Response {
public static function warning($msg) {
exit(json_encode('Warning: ' . $msg));
}
public static function error($msg) {
exit(json_encode('Error: ' . $msg));
}
public static function json($str, $options = 0) {
exit(json_encode($str, $options));
}
}