PHP mysqli dump_debug_info() Function
Example - Object Oriented style
Dump debug info into the log:
<?php
$mysqli = new mysqli("localhost","my_user","my_password","my_db");
$mysqli -> dump_debug_info();
?>
Look at example of procedural style at the bottom.
Definition and Usage
The dump_debug_info() / mysqli_dump_debug_info() function dumps debugging info into the log.
Syntax
Object oriented style:
$mysqli -> dump_debug_info()
Procedural style:
mysqli_dump_debug_info(link);
Parameter Values
Parameter | Description |
---|---|
link | Required. A link identifier returned by connect() or init() |
Technical Details
Return Value: | TRUE on success. FALSE on failure |
---|---|
PHP Version: | 5+ |
Example - Procedural style
Dump debug info into the log:
<?php
$con = mysqli_connect("localhost","my_user","my_password","my_db");
mysqli_dump_debug_info($con);
?>
❮ PHP MySQLi Reference
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.