abstract:<?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); ?> <div> <span style="color:red;">输入PHP关键字:</span> <form action="key.php" method='GET'> <input type="text" name="in" id=""> <button style='color:red;'>提交</button> </form> </div> <?php if (!empty($get)) { $get = strtolower($get); if (strpos($key, $get)) { echo "<span style='color:red;'>'{$get}' 是一个PHP关键字!</span>"; } else { echo "<span style='color:red;'>输入错误, '{$get}' 不是一个PHP关键字</span>"; } } ?>
Correcting teacher:查无此人Correction time:2019-03-26 16:51:08
Teacher's summary:这个不是让你写json数据嘛。怎么弄个字符串判断。继续加油吧。