mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
added a little more descriptive text to is_resource()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@25087 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
5e993eac18
commit
b502e8e888
1 changed files with 74 additions and 72 deletions
|
@ -216,27 +216,38 @@ if (!isset($var)) { // evaluates false
|
|||
</refentry>
|
||||
|
||||
<refentry id="function.is-bool">
|
||||
<refnamediv>
|
||||
<refname>is_bool</refname>
|
||||
<refpurpose>
|
||||
Finds out whether a variable is a boolean
|
||||
</refpurpose>
|
||||
<refnamediv>
|
||||
<refname>is_bool</refname>
|
||||
<refpurpose>
|
||||
Finds out whether a variable is a boolean
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcdef>int
|
||||
<function>is_bool</function>
|
||||
</funcdef>
|
||||
<paramdef>mixed
|
||||
<parameter>var</parameter>
|
||||
</paramdef>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
Returns true if the <parameter>var</parameter> parameter is
|
||||
a boolean.
|
||||
</para>
|
||||
</refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcdef>int
|
||||
<function>is_bool</function>
|
||||
</funcdef>
|
||||
<paramdef>mixed
|
||||
<parameter>var</parameter>
|
||||
</paramdef>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
Returns true if the <parameter>var</parameter> parameter is
|
||||
a boolean.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>is_array</function>,
|
||||
<function>is_double</function>,
|
||||
<function>is_float</function>,
|
||||
<function>is_int</function>,
|
||||
<function>is_integer</function>,
|
||||
<function>is_real</function>,
|
||||
<function>is_string</function>,
|
||||
<function>is_long</function>, and
|
||||
<function>is_object</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.is-double">
|
||||
|
@ -256,6 +267,7 @@ if (!isset($var)) { // evaluates false
|
|||
</para>
|
||||
<para>
|
||||
See also <function>is_array</function>,
|
||||
<function>is_bool</function>,
|
||||
<function>is_float</function>,
|
||||
<function>is_int</function>,
|
||||
<function>is_integer</function>,
|
||||
|
@ -283,6 +295,7 @@ if (!isset($var)) { // evaluates false
|
|||
</simpara>
|
||||
<simpara>
|
||||
See also <function>is_double</function>,
|
||||
<function>is_bool</function>,
|
||||
<function>is_real</function>,
|
||||
<function>is_int</function>,
|
||||
<function>is_integer</function>,
|
||||
|
@ -309,7 +322,8 @@ if (!isset($var)) { // evaluates false
|
|||
This function is an alias for <function>is_long</function>.
|
||||
</simpara>
|
||||
<simpara>
|
||||
See also <function>is_double</function>,
|
||||
See also <function>is_bool</function>,
|
||||
<function>is_double</function>,
|
||||
<function>is_float</function>,
|
||||
<function>is_integer</function>,
|
||||
<function>is_string</function>,
|
||||
|
@ -337,7 +351,8 @@ if (!isset($var)) { // evaluates false
|
|||
<function>is_long</function>.
|
||||
</simpara>
|
||||
<simpara>
|
||||
See also <function>is_double</function>,
|
||||
See also <function>is_bool</function>,
|
||||
<function>is_double</function>,
|
||||
<function>is_float</function>,
|
||||
<function>is_int</function>,
|
||||
<function>is_string</function>,
|
||||
|
@ -365,7 +380,8 @@ if (!isset($var)) { // evaluates false
|
|||
false otherwise.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>is_double</function>,
|
||||
See also <function>is_bool</function>,
|
||||
<function>is_double</function>,
|
||||
<function>is_float</function>,
|
||||
<function>is_int</function>,
|
||||
<function>is_real</function>,
|
||||
|
@ -393,7 +409,8 @@ if (!isset($var)) { // evaluates false
|
|||
numeric string, false otherwise.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>is_double</function>,
|
||||
See also <function>is_bool</function>,
|
||||
<function>is_double</function>,
|
||||
<function>is_float</function>,
|
||||
<function>is_int</function>,
|
||||
<function>is_real</function>,
|
||||
|
@ -421,7 +438,8 @@ if (!isset($var)) { // evaluates false
|
|||
otherwise.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>is_long</function>,
|
||||
See also <function>is_bool</function>,
|
||||
<function>is_long</function>,
|
||||
<function>is_int</function>,
|
||||
<function>is_integer</function>,
|
||||
<function>is_float</function>,
|
||||
|
@ -448,7 +466,8 @@ if (!isset($var)) { // evaluates false
|
|||
This function is an alias for <function>is_double</function>.
|
||||
</simpara>
|
||||
<simpara>
|
||||
See also <function>is_long</function>,
|
||||
See also <function>is_bool</function>,
|
||||
<function>is_long</function>,
|
||||
<function>is_int</function>,
|
||||
<function>is_integer</function>,
|
||||
<function>is_float</function>,
|
||||
|
@ -461,28 +480,34 @@ if (!isset($var)) { // evaluates false
|
|||
</refentry>
|
||||
|
||||
<refentry id="function.is-resource">
|
||||
<refnamediv>
|
||||
<refname>is_resource</refname>
|
||||
<refpurpose>
|
||||
Finds whether a variable is a resource
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcdef>int
|
||||
<function>is_resource</function>
|
||||
</funcdef>
|
||||
<paramdef>mixed
|
||||
<parameter>var</parameter>
|
||||
</paramdef>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
The <function>is_resource</function> returns true if the variable
|
||||
given by the <parameter>var</parameter> parameter is a resource, otherwise
|
||||
it returns false.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refnamediv>
|
||||
<refname>is_resource</refname>
|
||||
<refpurpose>
|
||||
Finds whether a variable is a resource
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcdef>int
|
||||
<function>is_resource</function>
|
||||
</funcdef>
|
||||
<paramdef>mixed
|
||||
<parameter>var</parameter>
|
||||
</paramdef>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
<function>is_resource</function> returns true if the variable
|
||||
given by the <parameter>var</parameter> parameter is a resource,
|
||||
otherwise it returns false.
|
||||
</para>
|
||||
<para>
|
||||
Resources are things like file or database result handles that
|
||||
are allocated and freed by internal PHP functions and that may
|
||||
need some cleanup when they are no longer in use but haven't been
|
||||
freed by user code.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.is-string">
|
||||
|
@ -501,7 +526,8 @@ if (!isset($var)) { // evaluates false
|
|||
false otherwise.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>is_long</function>,
|
||||
See also <function>is_bool</function>,
|
||||
<function>is_long</function>,
|
||||
<function>is_int</function>,
|
||||
<function>is_integer</function>,
|
||||
<function>is_float</function>,
|
||||
|
@ -513,30 +539,6 @@ if (!isset($var)) { // evaluates false
|
|||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.is-writable">
|
||||
<refnamediv>
|
||||
<refname>is_writable</refname>
|
||||
<refpurpose>
|
||||
Finds out whether or not you can write to a file
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcdef>int
|
||||
<function>is_writable</function>
|
||||
</funcdef>
|
||||
<paramdef>mixed
|
||||
<parameter>filename</parameter>
|
||||
</paramdef>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
The <function>is_writable</function> function returns true if the file pointed
|
||||
to by the <parameter>filename</parameter> parameter can be written to.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.isset">
|
||||
<refnamediv>
|
||||
<refname>isset</refname>
|
||||
|
|
Loading…
Reference in a new issue