PHP&MYSQL
Development environment preparation
SAE http://sae.sina.com.cn/
GitHub https://github.com/
Git http://git-scm.com/
Code Deployment Manual http://sae.sina.com.cn/doc/tutorial/code-deploy.html
bootstrap.css http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.css
Bootstrap front-end development framework http://v3.bootcss.com/
xampp https://www.apachefriends.org/zh_cn/index.html (recommended)
Development Tools
atom https://atom.io/ (myself)
sublime test3 http://www.sublimetext.com/3 (recommended)
notepad https://notepad-plus-plus.org/
phpstorm http://www.jetbrains.com/phpstorm/
Developer Community
Blog Park http://www.cnblogs.com/ (for my own use)
CSDN http://www.csdn.net/
51cto http://blog.51cto.com/
Open Source China http://www.oschina.net/
Lahuo·Entrepreneurship
Witkey-Zhubajie.com http://www.zbj.com/
36氪 http://36kr.com/
Huxiu.com http://www.huxiu.com/
PHP algorithm questions to be in-depth (code added after implementation...)
Only print 0
The specific number is determined by the input parameter n
If n=5, print 00000
php $n = $_GET['n']; for ($i=0; $i < $n; $i ) { echo"0"; } ?> //Modify n in the browser address input field: eg: //……?n=8 Print n zeros based on n valuePrint a line 0101010101010101010101
The specific number is determined by the input parameter n
For example, test.php?n=3 prints 010
Achieve 1 00 111 0000 11111
for if implementation
php for ($i = 0; $i < 10; $i ) { for ($j = 0; $j <= $i; $j ) { if ($i % 2 == 0) { echo '0'; } else { echo '1'; } } echo 'for switch implementation
while if implementation
While switch implementation
php $i = 0; while ($i < 10) { $j = 0; while ($j <= $i) { switch ($i % 2) { case 0: echo '0'; break; case 1; echo '1'; break; } $j ; } echo 'Be a calculator
For example, test.php?a=1&b=2&operator=jia output 3
For example, test.php?a=5&b=2&operator=jian outputs 3
For example, test.php?a=2&b=5&operator=cheng outputs 10
For example, test.php?a=6&b=3&operator=chu output 2