php8.5
Home/ Manual/ mysqli / mysqli/ mysqli::refresh

mysqli::refresh

PHP function Deprecated as of PHP 8.4.0 Edit on GitHub ✎

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

Refreshes

Function-8-4-0

Description

Oop

mysqli::refresh(int $flags): bool

Procedural

mysqli_refresh(mysqli $mysql, int $flags): bool

Flushes tables or caches, or resets the replication server information.

Parameters

flags

The options to refresh, using the MYSQLI_REFRESH_* constants as documented within the MySQLi constants documentation.

See also the official MySQL Refresh documentation.

Return Values

true if the refresh was a success, otherwise false

Changelog

VersionDescription
8.4.0Both mysqli::refresh and mysqli_refresh() are now deprecated. Use FLUSH SQL commands instead.

See Also

Source: reference/mysqli/mysqli/refresh.xml · from the official PHP manual (php/doc-en)