mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
First parameter is callback
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@278800 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
dcdb7186c3
commit
e7a5c5583f
1 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.14 $ -->
|
||||
<!-- $Revision: 1.15 $ -->
|
||||
<refentry xml:id="function.is-callable" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>is_callable</refname>
|
||||
|
@ -12,7 +12,7 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>is_callable</methodname>
|
||||
<methodparam><type>mixed</type><parameter>var</parameter></methodparam>
|
||||
<methodparam><type>callback</type><parameter>name</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>syntax_only</parameter><initializer>false</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter role="reference">callable_name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
|
@ -29,7 +29,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>var</parameter></term>
|
||||
<term><parameter>name</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Can be either the name of a function stored in a string variable, or
|
||||
|
@ -43,7 +43,7 @@
|
|||
<listitem>
|
||||
<para>
|
||||
If set to &true; the function only verifies that
|
||||
<parameter>var</parameter> might be a function or method. It will only
|
||||
<parameter>name</parameter> might be a function or method. It will only
|
||||
reject simple variables that are not strings, or an array that does
|
||||
not have a valid structure to be used as a callback. The valid ones
|
||||
are supposed to have only 2 entries, the first of which is an object
|
||||
|
@ -69,7 +69,7 @@
|
|||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns &true; if <parameter>var</parameter> is callable, &false;
|
||||
Returns &true; if <parameter>name</parameter> is callable, &false;
|
||||
otherwise.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
Loading…
Reference in a new issue