PHP_Framework

Wh1t3projects' PHP framework. Small PHP framework for building web apps and websites

View the Project on GitHub

Syntax: kernel_shutdown([int $exitCode])

Similar to calling exit() except that it trigger the normal shutdown of the framework before exiting. Use kernel_planic or kernel_log with log level 1 instead if you want to stop the execution immediately.


Parameters

Optional exitCode
Exit code to return to the caller (command line or web server).


Return values

No value is returned


Examples:

Shutdown normally
kernel_shutdown();

Shutdown with exit code 20
kernel_shutdown(20);