php 超简略面试题

WBOY
Release: 2016-06-13 13:19:03
Original
933 people have browsed it

php 超简单面试题

? ? 代码修正:

修改前:

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

?

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

不说了,你懂的!

?

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template