<?php $hold = ['warning', 'warning', 'critical', 'ok', 'this is bad']; $messages = ['warning' => 'it is a warning', 'critical' => 'its critical', 'ok' => 'everyhting is ok']; foreach ($hold as $status) { echo ($messages[$status] ?? 'unknown') . PHP_EOL; }
You have javascript disabled. You will not be able to edit any code.