cvs: phpdoc-hu /reference/var/functions is-resource.xml
| From: | Cece) Szabolcs | Date: | Mon, 29 Mar 2004 23:25:10 +0000 |
| Subject: | cvs: phpdoc-hu /reference/var/functions is-resource.xml | ||
| Groups: | php.doc.hu | ||
| Request: | Send a blank email to doc-hu+get-505@lists.php.net to get a copy of this message | ||
cece Mon Mar 29 18:25:10 2004 EDT
Modified files:
/phpdoc-hu/reference/var/functions is-resource.xml
Log:
sync with en revision
http://cvs.php.net/diff.php/phpdoc-hu/reference/var/functions/is-resource.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc-hu/reference/var/functions/is-resource.xml
diff -u phpdoc-hu/reference/var/functions/is-resource.xml:1.2
phpdoc-hu/reference/var/functions/is-resource.xml:1.3
--- phpdoc-hu/reference/var/functions/is-resource.xml:1.2 Wed Apr 17 02:58:11 2002
+++ phpdoc-hu/reference/var/functions/is-resource.xml Mon Mar 29 18:25:10 2004
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- splitted from ./hu/functions/var.xml, last change in rev 1.10 -->
<!-- last change to 'is-resource' in en/ tree in rev 1.19 -->
-<!-- EN-Revision: 1.2 Maintainer: goba Status: ready -->
+<!-- EN-Revision: 1.3 Maintainer: goba Status: ready -->
<!-- OLD-Revision: 1.104/EN.1.19 -->
<refentry id="function.is-resource">
<refnamediv>
@@ -22,6 +22,23 @@
erõforrásazonosító, &false; értéket ad egyébként.
</para>
<para>
+ <example>
+ <title>using <function>is_resource</function></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+$db_link = @mysql_connect('localhost', 'mysql_user', 'mysql_pass');
+if (!is_resource($db_link)) {
+ die('A kapcsolódás sikertelen: ' . mysql_error());
+}
+
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ <para>
Lásd a <type>resource</type> típus dokumentációját további
információkért.
</para>