PHP 中的 mysqli get client info函数

首页 / PHP入门教程 / PHP 中的 mysqli get client info函数

mysqli get client info - 语法

mysqli_get_client_info(connection);

它返回MySQL客户端库版本。

无涯教程网

Sr.No 参数 & Description
1

connection

它指定MySQL连接

链接:https://www.learnfk.comhttps://www.learnfk.com/php/mysqli-get-client-info.html

来源:LearnFk无涯教程网

mysqli get client info - 返回值

它返回MySQL客户端库版本。

无涯教程网

mysqli get client info - 示例

<?php
   $connection_mysql=mysqli_connect("localhost","user","password","db");
   
   if (mysqli_connect_errno($connection_mysql)){
      echo "Failed to connect to MySQL: " . mysqli_connect_error();
   }
   
   print_r(mysqli_get_client_info($connection_mysql));
   
   mysqli_close($connection_mysql);
?>

祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)

技术教程推荐

软件工程之美 -〔宝玉〕

Flutter核心技术与实战 -〔陈航〕

MongoDB高手课 -〔唐建法(TJ)〕

用户体验设计实战课 -〔相辉〕

大数据经典论文解读 -〔徐文浩〕

Tony Bai · Go语言第一课 -〔Tony Bai〕

玩转Vue 3全家桶 -〔大圣〕

手把手带你写一个MiniSpring -〔郭屹〕

互联网人的数字化企业生存指南 -〔沈欣〕

好记忆不如烂笔头。留下您的足迹吧 :)