Example 1 — Alias of options()
Show that both names describe the same call.
<?php
echo 'mysqli_set_opt === alias of mysqli_options', PHP_EOL;
echo 'example: MYSQLI_OPT_CONNECT_TIMEOUT = 5', PHP_EOL; How It Works
- Read the manual entry for options() for the real behavior.
- set_opt() is kept for older naming.
- Pass the same constants and values to either name.
- Sample output when connected to a demo database is simply a true return before connect.

