cvs: phpdoc-zh /reference/var/functions is-bool.xml
| From: | Krazy Nio | Date: | Sun, 04 May 2003 10:22:54 +0000 |
| Subject: | cvs: phpdoc-zh /reference/var/functions is-bool.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1415@lists.php.net to get a copy of this message | ||
nio Sun May 4 06:22:54 2003 EDT
Added files:
/phpdoc-zh/reference/var/functions is-bool.xml
Log:
Add file
Index: phpdoc-zh/reference/var/functions/is-bool.xml
+++ phpdoc-zh/reference/var/functions/is-bool.xml
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: nio $ -->
<!-- EN-Revision: 1.4 Maintainer: nio Status: ready -->
<!-- splitted from ./en/functions/var.xml, last change in rev 1.19 -->
<refentry id="function.is-bool">
<refnamediv>
<refname>is_bool</refname>
<refpurpose>
¼ì²â±äÁ¿ÊÇ·ñÊDz¼¶ûÐÍ
</refpurpose>
</refnamediv>
<refsect1>
<title>ÃèÊö</title>
<methodsynopsis>
<type>bool</type><methodname>is_bool</methodname>
<methodparam><type>mixed</type><parameter>var</parameter></methodparam>
</methodsynopsis>
<para>
Èç¹û <parameter>var</parameter>
ÊÇ<type>²¼¶ûÐÍ</type>Ôò·µ»Ø &true;¡£
</para>
<para>
<example>
<title><function>is_bool</function> ʾÀý</title>
<programlisting role="php">
<![CDATA[
<?php
$a = false;
$b = 0;
// ÒòΪ $a ÊDz¼¶ûÐÍ£¬ËùÒÔ½á¹ûÎªÕæ
if (is_bool($a)) {
print "Yes, this is a boolean";
}
// ÒòΪ $b ²»ÊDz¼¶ûÐÍ£¬ËùÒÔ½á¹ûΪ·ÇÕæ
if (is_bool($b)) {
print "Yes, this is a boolean";
}
?>
]]>
</programlisting>
</example>
</para>
<para>
²Î¼û
<function>is_array</function>¡¢<function>is_float</function>¡¢<function>is_int</function>¡¢<function>is_integer</function>¡¢<function>is_string</function>
ºÍ <function>is_object</function>¡£
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->