From 4bf34401d363777222cbd9ce7e530c2be6cf0928 Mon Sep 17 00:00:00 2001
From: Georg Richter <georg@php.net>
Date: Sun, 21 Apr 2002 16:06:55 +0000
Subject: [PATCH] added example added see alsos

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@79313 c90b9560-bf6c-de11-be94-00142212c4b1
---
 .../mysql/functions/mysql-get-host-info.xml   | 24 +++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/reference/mysql/functions/mysql-get-host-info.xml b/reference/mysql/functions/mysql-get-host-info.xml
index 531cb6d990..62d3b569c4 100644
--- a/reference/mysql/functions/mysql-get-host-info.xml
+++ b/reference/mysql/functions/mysql-get-host-info.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 -->
   <refentry id="function.mysql-get-host-info">
    <refnamediv>
@@ -19,8 +19,28 @@
      name.  If <parameter>link_identifier</parameter> is omitted, the
      last opened connection will be used.
     </para>
+    <example>
+     <title>mysql_get_host_info Example</title>
+     <programlisting role="php">
+<![CDATA[
+<?php
+    printf ("MySQL host info: %s\n", mysql_get_host_info());
+?>
+]]>
+     </programlisting>
+     <para>
+      The above example would produce the following output:
+     </para>
+     <screen>
+<![CDATA[
+MySQL host info: Localhost via UNIX socket
+]]>
+     </screen>
+    </example>
     <para>
-     <function>mysql_get_host_info</function> was added in PHP 4.0.5.
+     See also: <function>mysql_get_client_info</function>,
+               <function>mysql_get_proto_info</function> and
+               <function>mysql_get_server_info</function>.
     </para>
    </refsect1>
   </refentry>