Home > php教程 > php手册 > php实现有趣的人品测试程序实例

php实现有趣的人品测试程序实例

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:03:39
Original
896 people have browsed it

这篇文章主要介绍了php实现有趣的人品测试程序,涉及php针对字符串的转换操作技巧,需要的朋友可以参考下

本文实例讲述了php实现有趣的人品测试程序。分享给大家供大家参考。具体实现方法如下:

算算你的人品BY冷枫哥哥






输入你的姓名来算算你的人品:

程序制作:冷枫哥哥©1.01 

".$name.""; for($i = 0;$i ".$shuzi.""; function getValue($shuzi){ if ($shuzi== 0) { echo "你一定不是人吧?怎么一点人品都没有?!"; } elseif (($shuzi>0)&&($shuzi 5) && ($shuzi 10) && ($shuzi 15) && ($shuzi 20) && ($shuzi 25) && ($shuzi 30) && ($shuzi 35) && ($shuzi 40) && ($shuzi 45) && ($shuzi 50) && ($shuzi 55) && ($shuzi 60) && ($shuzi 65) && ($shuzi 70) && ($shuzi 75) && ($shuzi 80) && ($shuzi 85) && ($shuzi 90) && ($shuzi 95) && ($shuzi |".$date."|".$name."|".$shuzi."\r\n"; fwrite($fp,$content); fclose($fp);*/ } if($_GET['name']) js(); ?>

运行效果如下图所示:

php实现有趣的人品测试程序实例

希望本文所述对大家的php程序设计有所帮助。

Related labels:
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 Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template