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關(guān)鍵字:</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關(guān)鍵字!</span>"; } else { echo "<span style='color:red;'>輸入錯誤, '{$get}' 不是一個PHP關(guān)鍵字</span>"; } } ?>
Correcting teacher:查無此人Correction time:2019-03-26 16:51:08
Teacher's summary:這個不是讓你寫json數(shù)據(jù)嘛。怎么弄個字符串判斷。繼續(xù)加油吧。