Skip to content

Commit 02ec8c6

Browse files
committed
[reference/funchand] sync with en
1 parent 991aab4 commit 02ec8c6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

reference/funchand/functions/register-tick-function.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: e72a6312b92af40004161b6a8843f18e08fcc5d5 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 689cf3b5aebc4ff00c6fe52b46bdfbf3460c338c Maintainer: takagi Status: ready -->
44
<!-- CREDITS: hirokawa,mumumu -->
55
<refentry xml:id="function.register-tick-function" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -62,12 +62,11 @@
6262
<?php
6363
declare(ticks=1);
6464
65-
// 関数をコールバックとして使用します
66-
register_tick_function('my_function', true);
65+
function my_tick_function($param) {
66+
echo "Tick callback function called with param: $param\n";
67+
}
6768
68-
// オブジェクトのメソッドを使用します
69-
$object = new my_class();
70-
register_tick_function(array($object, 'my_method'), true);
69+
register_tick_function('my_tick_function', true);
7170
?>
7271
]]>
7372
</programlisting>

0 commit comments

Comments
 (0)