$dt[0], 'chat_icon' => $chat_info -> author -> imageUrl, 'chat_name' => $chat_info -> author -> name, 'chat_message' => $chat_info -> message, 'answer' => $dt[2]]; } } fclose ($f); unset ($f); if ($keyword != '') { $log_data = array_filter ($log_data, fn ($row) => ( strpos ($row['chat_name'] . "\n" . $row['chat_message'] . "\n" . $row['answer'], $keyword) !== false)); } $pages_max = (int) ((count ($log_data) - 1) / $length) + 1; if (!($asc)) $log_data = array_reverse ($log_data); require_once './index.frm.php';