摘要:
1. 一个简介的例子 , 调用一个函数1 <?php2 function test() {3 echo "test()";4 }5 6 register_shutdown_function(array("test"));7 echo "show: ";8 ?>这个例子输出 show: test() , 这个函数的作用就是在退出脚本前,调用已经注册的函数,并执行该函数。2. 在类中用一个数组作为一个参数<?php class ClassDemo { public function __construct() { ... 阅读全文
posted @ 2013-03-22 15:37
刘牛德
阅读(150)
评论(0)
推荐(0)
浙公网安备 33010602011771号