Will frequent use of mysqli_result::fetch_column in loops be slow? Optimization suggestions are here
What is mysqli_result::fetch_column? fetch_column is a new method added to the mysqli_result class in PHP 8.1. It is used to directly obtain the values of a single column in the result set and avoid additional array access. It has a simple syntax and is similar to fetchColumn in PDO. Examples of use are as follows:
mysqli_result::fetch_column