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:
Jakub Vrana 2009-04-16 09:46:57 +00:00
parent dcdb7186c3
commit e7a5c5583f

View file

@ -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>