<?php trigger_error(string $message, int $error_level = E_USER_NOTICE): true
<?php } if ($_GET['warning'] ?? false) { trigger_error('This is a test warning', E_USER_WARNING); } if ($_SERVER['REQUEST_METHOD'] === 'POST') {
<?php } if ($event['warning'] ?? false) { trigger_error('This is a test warning', E_USER_WARNING); } return 'Hello ' . ($event['name'] ?? 'world');
<?php } if ($_GET['warning'] ?? false) { trigger_error('This is a test warning', E_USER_WARNING); } echo 'Hello ' . ($_GET['name'] ?? 'world!');