编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « pg_get_result
  • pg_insert »
  • PHP Manual
  • PostgreSQL 函数
  • 返回和某连接关联的主机名

pg_host

(PHP 4, PHP 5, PHP 7)

pg_host — 返回和某连接关联的主机名

说明

pg_host ( resource $connection ) : string

pg_host() 返回指定的 PostgreSQL connection 资源号所连接到的主机名称。

参见 pg_connect() 和 pg_pconnect()。

相关文章
php 杂项 函数 返回连接的状态位php 网络 函数 返回主机名对应的 ipv4地址。php postgresql 函数 返回受影响的记录数目php postgresql 函数 将关联的数组值转换为适合 sql 语句的格式。php postgresql 函数 从结果资源中返回值php postgresql 函数 返回字段的名字php postgresql 函数 返回字段的编号php postgresql 函数 返回打印出来的长度php postgresql 函数 返回指定字段占用内部存储空间的大小php postgresql 函数 返回和某连接关联的主机名php postgresql 函数 得到某连接的最后一条错误信息php postgresql 函数 返回 postgresql 服务器最新一条公告信息php postgresql 函数 返回上一个对象的 oidphp postgresql 函数 返回字段的数目php postgresql 函数 返回行的数目php postgresql 函数 获得和连接有关的选项php postgresql 函数 打开一个持久的 postgresql 连接php postgresql 函数 ping 数据库连接php postgresql 函数 返回该连接的端口号php postgresql 函数 返回该连接的 tty 号
关注编程学问公众号
编程学问网 湘ICP备20001732号