注册 登录
编程论坛 PHP技术论坛

php 过程调用怎么调用的 像我这个asp代码一样功能的

guang2356447 发布于 2015-09-09 10:39, 2005 次点击
<%
sub leibie(zhi)
if request.QueryString("xxid")=zhi then
response.Write "dh4"  //这是css样式
else
response.Write "dh3"  //这是css样式
end if
end sub
%>
调用<%call leibie("5")%>

求类似asp这个功能的  php代码
1 回复
#2
guang23564472015-09-09 11:19
<?php
function add ($n1) {
if($_GET[lx]==$n1){        //如果传过来的值=空  then输入aa   否则输入aaa
return 'dh6q';
}
else
{
return 'dh6';
}
}
?>
<?php echo add(1);?>
1