Example 1 — Check Thread Safety
Call the function with no arguments and print a fixed demo result.
<?php
$safe = true; // stand-in sample for mysqli_thread_safe()
echo $safe ? 'thread-safe client: yes' : 'thread-safe client: no', PHP_EOL; How It Works
- Call mysqli_thread_safe() with no link parameter.
- Read the boolean return value.
- This demo assumes a thread-safe build.
- Your machine may print no instead — both are valid builds.

