Home >Backend Development >PHP Tutorial >php 超简略面试题

php 超简略面试题

WBOY
WBOYOriginal
2016-06-13 10:40:53873browse

php 超简单面试题

? ? 代码修正:

修改前:

<?echo ("Search results for query: " .$_GET['query']. ".");?>
修改后:

?

<?php $query = $_GET['query'];if(isset($query)){    echo 'Search results for query: ',htmlspecialchars($query, ENT_QUOTES),'.';}?>
?

不说了,你懂的!

?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn