摘要:<?php $get = isset($_GET['in']) ? $_GET['in'] : '';$key = '__halt_compiler() abstract and array() as break callable case catch class clone const continue declare default<?php
$get = isset($_GET['in']) ? $_GET['in'] : '';
$key = '__halt_compiler() abstract and array() as break callable case catch class clone const continue declare default die() do echo else elseif empty() enddeclare endfor endforeach endif endswitch endwhile eval() exit() extends final finally for foreach function global goto if implements include include_once instanceof insteadof interface isset() list() namespace new or print private protected public require require_once return static switch throw trait try unset() use var while xor yield';
$get = trim($get);
?>
输入PHP关键字:
提交
if (!empty($get)) {
$get = strtolower($get);
if (strpos($key, $get)) {
echo "'{$get}' 是一个PHP关键字!";
} else {
echo "输入错误, '{$get}' 不是一个PHP关键字";
}
}
?>
批改老师:查无此人批改时间:2019-03-26 16:51:08
老师总结:这个不是让你写json数据嘛。怎么弄个字符串判断。继续加油吧。