PHP mysqli: thread_safe() function
mysqli_thread_safe() function / mysqli::thread_safe
The mysqli_thread_safe() function / mysqli::thread_safe returns whether the client library is compiled as thread-safe.
Syntax:
bool mysqli_thread_safe ( void )
Usage
mysqli_thread_safe();
Return value:
TRUE if the client library is thread-safe, otherwise FALSE.
Version: PHP 5, PHP 7
Example:
<?php
if(mysqli_connect_errno($con))
{
echo "Unable to connect: ".mysqli_connect_error();
}
echo mysqli_thread_safe();
mysqli_close($con);
?>
See also
Previous: thread_id
Next: use_result
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/php/function-reference/mysqli_thread_safe.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics