note 130031 added to mysqli.info
| From: | ASchmidt@Anamera.net | Date: | Sun, 16 Feb 2025 17:11:31 +0000 |
| Subject: | note 130031 added to mysqli.info | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221855@lists.php.net to get a copy of this message | ||
This will "normalize" the listed possible string outputs into a consistent associated
array, with lower-case keys.
if ( 1 === preg_match(
'/^(?:.+\s+)*([\w]+):\s+(\d+)\s+([\w]+):\s+(\d+)\s+([\w]+):\s+(\d+)\s*$/U', strtolower(
(string) mysqli_info( $mysqli ) ), $matches, PREG_UNMATCHED_AS_NULL ) ) {
$matches = array( $matches[1] => (int) $matches[2], $matches[3] => (int) $matches[4],
$matches[5] => (int) $matches[6] );
var_dump( $matches );
}
Result:
array (size=3)
'matched' => int 40
'changed' => int 40
'warnings' => int 0
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 2600:4040:a501:bb00:1100:b141:7952:688a)
----
Manual Page -- https://php.net/manual/en/mysqli.info.php
Edit -- https://main.php.net/note/edit/130031
Del: integrated -- https://main.php.net/note/delete/130031/integrated
Del: useless -- https://main.php.net/note/delete/130031/useless
Del: bad code -- https://main.php.net/note/delete/130031/bad+code
Del: spam -- https://main.php.net/note/delete/130031/spam
Del: non-english -- https://main.php.net/note/delete/130031/non-english
Del: in docs -- https://main.php.net/note/delete/130031/in+docs
Del: other reasons-- https://main.php.net/note/delete/130031
Reject -- https://main.php.net/note/reject/130031
Search -- https://main.php.net/manage/user-notes.php