Home > php教程 > PHP源码 > 大家认为以下代码是输出Y还是输出N

大家认为以下代码是输出Y还是输出N

PHP中文网
Release: 2016-05-25 17:13:27
Original
983 people have browsed it

[PHP]代码 

<?
if(in_array("09112511431528108",array("09112511431528107")))
{
	echo "Y";
}
else
{
	echo "N";
}
?>
Copy after login

[PHP]代码

$x="09112511431528108";
$y="09112511431528107";
echo $x==$y?"Y":"N"; //得到结果为了Y
Copy after login

                   


                   

Related labels:
php
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
Latest Articles by Author
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template