File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
reference/funchand/functions Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- $Revision$ -->
3
- <!-- EN-Revision: e72a6312b92af40004161b6a8843f18e08fcc5d5 Maintainer: takagi Status: ready -->
3
+ <!-- EN-Revision: 689cf3b5aebc4ff00c6fe52b46bdfbf3460c338c Maintainer: takagi Status: ready -->
4
4
<!-- CREDITS: hirokawa,mumumu -->
5
5
<refentry xml : id =" function.register-tick-function" xmlns =" http://docbook.org/ns/docbook" >
6
6
<refnamediv >
62
62
<?php
63
63
declare(ticks=1);
64
64
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
+ }
67
68
68
- // オブジェクトのメソッドを使用します
69
- $object = new my_class();
70
- register_tick_function(array($object, 'my_method'), true);
69
+ register_tick_function('my_tick_function', true);
71
70
?>
72
71
]]>
73
72
</programlisting >
You can’t perform that action at this time.
0 commit comments