PHP mysqli dump_debug_info() Functie
Voorbeeld - Objectgeoriënteerde stijl
Dump debug-informatie in het logboek:
<?php
$mysqli = new mysqli("localhost","my_user","my_password","my_db");
$mysqli -> dump_debug_info();
?>
Kijk naar voorbeeld van procedurele stijl onderaan.
Definitie en gebruik
De functie dump_debug_info() / mysqli_dump_debug_info() dumpt foutopsporingsinformatie in het logboek.
Syntaxis
Objectgeoriënteerde stijl:
$mysqli -> dump_debug_info()
Procedurele stijl:
mysqli_dump_debug_info(link);
Parameterwaarden
Parameter | Description |
---|---|
link | Required. A link identifier returned by connect() or init() |
Technische details
Winstwaarde: | WAAR op succes. ONWAAR bij fout |
---|---|
PHP-versie: | 5+ |
Voorbeeld - Procedurele stijl
Dump debug-informatie in het logboek:
<?php
$con = mysqli_connect("localhost","my_user","my_password","my_db");
mysqli_dump_debug_info($con);
?>
❮ PHP MySQLi-referentie