fixed various errors and changed the wording slightly (thanks philip)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@132266 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Davey Shafik 2003-06-17 23:45:58 +00:00
parent 8af4dcf928
commit e0a2d426f6

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/funchand.xml, last change in rev 1.12 -->
<refentry id="function.register-tick-function">
<refnamediv>
@ -19,26 +19,26 @@
Registers the function named by <parameter>func</parameter> to be
executed when a <link
linkend="control-structures.declare">tick</link> is
called.
called. Also, you may pass an array consisting of an object and a
method as the <parameter>func</parameter>.
</simpara>
<simpara>
You may also pass an array consisting of an object and a method as the <parameter>func</parameter>
</simpara>
<example>
<title><function>register_tick_function</function> Example</title>
<programlisting role="php">
<para>
<example>
<title><function>register_tick_function</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
// using a function as the callback
register_tick_function('myFunction',TRUE);
register_tick_function('my_function', TRUE);
// using an object-&gt;method
$object = new myClass();
register_tick_function(array(&amp;$object,'myMethod'),TRUE);
// using an object->method
$object = new my_class();
register_tick_function(array(&$object, 'my_method'), TRUE);
?>
]]>
</programlisting>
</example>
</programlisting>
</example>
</para>
</refsect1>
</refentry>