init.php
<?php
function test1() {}
?>test.php
<?php
class test{
$t;
function __construct(){
$this->t=test1;
}
}
?>$this->t=test1; 为什么可以执行,为什么可以取到init.php中的test1方法???请大家帮忙解释下!
<?php
function test1() {}
?>test.php
<?php
class test{
$t;
function __construct(){
$this->t=test1;
}
}
?>$this->t=test1; 为什么可以执行,为什么可以取到init.php中的test1方法???请大家帮忙解释下!
include_oncetest1方法后要加 ()
--------------------------------------------------------
教程地址
http://topic.csdn.net/u/20100228/22/3bea834b-efc0-4aa0-af4a-a4923af8b60c.html
http://topic.csdn.net/u/20100226/12/43bf3dc5-795f-4fa5-861a-2f7bf8fd0cd6.html
下载地址
http://code.google.com/p/queryphp/downloads/list