php 常用语句

WBOY
WBOYOriginal
2016-06-23 14:33:26900browse

<?php$a=@$_GET["a"];if($a==NULL){    echo "为输入值";}else{    if((string)((int)$a!=$a))        echo "不是整数";    else    {    if($a%2==0)        echo $a."是偶数";    else        {        echo $a."是奇数";        }    }}?>

 

// ccommon.php<?php$a=@$_GET["a"];if($a==NULL){    echo "为输入值";}else{    if((string)((int)$a!=$a))        echo "不是整数";    else    {    if($a%2==0)        echo $a."是偶数";    else        {        echo $a."是奇数";        }    }}?>//   include.php  /* 使用require语句在一个php中包含另一个php文件

 

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