Is there any difference of any kind between $result->fetch_assoc() and
$result->fetch_array(MYSQLI_ASSOC) or they are exactly the same thing?
I have searched a bit before making this question but the only thing I've found (here) is that $result->fetch_array() with no params allows numeric and associative indexes while
$result->fetch_assoc() only allows the associative indexes and therefore the last one has a better performance.
MYSQLI_ASSOCargument to thefetch_array()function. If you don't have that particular argument, they're different.MYSQLI_ASSOCconstant withfetch_arrayit is exactly the same asfetch_assoc. They both call the same internal function. They are essentially aliases. I would expect to see negligible if any difference in performance.