(PECL sphinx >= 0.1.0)
SphinxClient::getLastError — Get the last error message
public SphinxClient::getLastError ( ) : string
Returns string with the last error message. If there were no errors during the previous API call, empty string is returned. This method doesn't reset the error message, so you can safely call it several times.
This function has no parameters.
Returns the last error message or an empty string if there were no errors.
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/sphinxclient.getlasterror.php