php函数与变量

原创 2019-05-15 16:09:38 234
摘要:$thief = '小偷';function catching(){return isset($thief) ? '抓住:'.$thief:'没有抓住';}echo catching($thief);

$thief = '小偷';

function catching()


{

return isset($thief) ? '抓住:'.$thief:'没有抓住';

}


echo catching($thief);


批改老师:查无此人批改时间:2019-05-16 09:18:44
老师总结:完成的不错。php系统的叫函数,开发者自定义的叫方法。继续加油

发布手记

热门词条