php 常用语句

WBOY
Release: 2016-06-23 14:33:26
Original
870 people have browsed it

<?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."是奇数";        }    }}?>
Copy after login

// 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文件
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