Definition and usage The mysqli_thread_safe() function returns whether the client library is compiled into thread-safe. grammar mysqli_thread_safe() ; technical details Return value: Returns TRUE if the client library is thread-safe, FALSE otherwise. PHP version: 5+