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

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

PHP中文网
PHP中文网Original
2016-05-25 17:13:27956browse

[PHP]代码 

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

[PHP]代码  

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

                   


                   

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