What best practices should be followed when handling MySQL result resources in PHP?
When handling MySQL result resources in PHP, it is important to free up the memory used by the result set after you are done working with it. This can be done by using the `mysqli_free_result()` function to release the associated resources.
// Execute a query
$result = mysqli_query($connection, "SELECT * FROM table");
// Process the result set
// Free up the memory used by the result set
mysqli_free_result($result);