Triggers error if
$divisor
equals to 0
$divisor = false;
if ($divisor == 0) {
    trigger_error("Cannot divide by zero", E_USER_WARNING);
}
Possible second parameter values:
E_USER_NOTICE
E_USER_WARNING
E_USER_ERROR
The second parameter defaults to E_USER_NOTICE
by Valeri Tandilashvili
4 years ago
PHP
functions
Object Oriented PHP Tutorial
2
Pro tip: use ```triple backticks around text``` to write in code fences