本猿新接触(内附PHP开发环境与PHP简单算法题)2015.07上半月,2015.07上半月
本猿新接触(内附PHP开发环境与PHP简单算法题)——2015.07上半月,2015.07上半月
PHP&MYSQL
开发环境准备
SAE http://sae.sina.com.cn/
GitHub https://github.com/
Git http://git-scm.com/
代码部署手册 http://sae.sina.com.cn/doc/tutorial/code-deploy.html
bootstrap.css http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.css
Bootstrap前端开发框架 http://v3.bootcss.com/
xampp https://www.apachefriends.org/zh_cn/index.html (推荐)
开发工具
atom https://atom.io/ (本人)
sublime test3 http://www.sublimetext.com/3 (推荐)
notepad++ https://notepad-plus-plus.org/
phpstorm http://www.jetbrains.com/phpstorm/
开发者社区
博客园 http://www.cnblogs.com/ (本人使用)
CSDN http://www.csdn.net/
51cto http://blog.51cto.com/
开源中国 http://www.oschina.net/
拉活·创业
威客-猪八戒网 http://www.zbj.com/
36氪 http://36kr.com/
虎嗅网 http://www.huxiu.com/
待深入的PHP算法题(实现后添加代码…)
只打印0
具体个数由输入的参数n决定
如n=5就打印00000
php $n = $_GET['n']; for ($i=0; $i $n; $i++) { echo"0"; } ?> //在浏览器地址输入栏修改n:eg: //……?n=8 根据n值打印n个0打印一行 0101010101010101010101
具体个数由输入的参数n决定
如test.php?n=3打印010
实现1 00 111 0000 11111
for if 实现
php for ($i = 0; $i $i++) { for ($j = 0; $j $i; $j++) { if ($i % 2 == 0) { echo '0'; } else { echo '1'; } } echo ''; } ?> for&if语句实现
for switch 实现
while if 实现
while switch 实现
php $i = 0; while ($i ) { $j = 0; while ($j $i) { switch ($i % 2) { case 0: echo '0'; break; case 1; echo '1'; break; } $j++; } echo ''; $i++; } ?> while&switch语句实现
做个计算器
如test.php?a=1&b=2&operator=jia输出3
如test.php?a=5&b=2&operator=jian输出3
如test.php?a=2&b=5&operator=cheng输出10
如test.php?a=6&b=3&operator=chu输出2

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft