文章分类 -  php

摘要:函数定义中不写形参,然后用func_num_args和func_get_args获取参数个数以及具体的参数。function test(){ $total = func_num_args(); $numbers = func_get_args(); var_dump($total); var_dump($numbers);}test(1,2);原文地址:http://51hired.com/questions/712/PHP%E4%B8%AD%E5%87%BD%E6%95%B0%E7%9A%84%E5%8F%AF%E5%8F%98%E5%8F%82%E6%95%B0%E... 阅读全文
posted @ 2012-12-25 18:35 呆头鱼 阅读(437) 评论(0) 推荐(0)
摘要:// See related links for more status codes // Use this header instruction to fix 404 headers// produced by url rewriting...header('HTTP/1.1 200 OK'); // Page was not found:header('HTTP/1.1 404 Not Found'); // Access forbidden:header('HTTP/1.1 403 Forbidden'); // The page move 阅读全文
posted @ 2012-03-08 12:42 呆头鱼 阅读(865) 评论(0) 推荐(0)