下面的函数:function test($a){
echo $a;
}这里调用$str = 'abcdefghi';test($str);//这里会输出字符串:'abcdefghi'我的想法是test($str);这里会输出字符串:'$str' test($bb)输出:'$bb'这有可能这样实现的吗?怎么写?
echo $a;
}这里调用$str = 'abcdefghi';test($str);//这里会输出字符串:'abcdefghi'我的想法是test($str);这里会输出字符串:'$str' test($bb)输出:'$bb'这有可能这样实现的吗?怎么写?
解决方案 »
- 数据库出现DB connect error错误
- 谁有好的php防SQL注入通用代码,谢谢
- 超级郁闷的十一
- 各位,我在PHP中用怎么不能换行,难道是书上印刷错误吗?
- 求个正则表达式
- 急!在线等echo "<td>".($arr['Group_ID']==$arr['User_Account']?"-":$arr['Group_ID'])."</td>";
- 重金求购:网络营销\远程仓储管理模拟系统\国际货贷\条形码编辑
- 自动url分析的问题请问
- php+mysql调试问题
- php soapclient调用webservice接口的问题
- 点一个值,得到另一值的问题,在线等
- 短域名写cookie的问题
http://cn.php.net/manual/en/function.parsekit-func-arginfo.php
parsekit_func_arginfo — Return information regarding function argument(s)
ExamplesExample #1 parsekit_func_arginfo() example<?php
function foo($bar, stdClass $baz, &$bomb, $bling = false) {
}var_dump(parsekit_func_arginfo('foo'));
?>
The above example will output:array(4) {
[0]=>
array(3) {
["name"]=>
string(3) "bar"
["allow_null"]=>
bool(true)
["pass_by_reference"]=>
bool(false)
}
[1]=>
array(4) {
["name"]=>
string(3) "baz"
["class_name"]=>
string(8) "stdClass"
["allow_null"]=>
bool(false)
["pass_by_reference"]=>
bool(false)
}
[2]=>
array(3) {
["name"]=>
string(4) "bomb"
["allow_null"]=>
bool(true)
["pass_by_reference"]=>
bool(true)
}
[3]=>
array(3) {
["name"]=>
string(5) "bling"
["allow_null"]=>
bool(true)
["pass_by_reference"]=>
bool(false)
}
}