Ben Yuanxin's new contact (with the PHP development environment and simple PHP algorithm questions included)-2015.07 in the first half of the month, 2015.07 in the first half of the month

Source: Internet
Author: User
Tags php development environment

Ben Yuanxin's new contact (with the PHP development environment and simple PHP algorithm questions included)-2015.07 in the first half of the month, 2015.07 in the first half of the month

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)

 

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 garden http://www.cnblogs.com/(I use)

CSDN http://www.csdn.net/

51cto http://blog.51cto.com/

Open source http://www.oschina.net/

 

Entrepreneurship

Weike-pig Bajie net http://www.zbj.com/

36 KR http://36kr.com/

Tiger sniffing network http://www.huxiu.com/

 

 

PHP algorithm questions to be explored (Add code after implementation ...)

Print 0 only

The specific number is determined by the input parameter n.

If n = 5, 00000 is printed.

<? Php $ n = $ _ GET ['n']; for ($ I = 0; $ I <$ n; $ I ++) {echo "0" ;}?> // In the browser address field, enter n: eg ://......? N = 8Print n zeros Based on n values

Print a row 0101010101010101010101

The specific number is determined by the input parameter n.

Such as test. php? N = 3 Print 010

1 00 111 0000 11111

For if implementation

<? Phpfor ($ I = 0; $ I <10; $ I ++) {for ($ j = 0; $ j <= $ I; $ j ++) {if ($ I % 2 = 0) {echo '0';} else {echo '1' ;}} echo '<br/>' ;}?>For & if statement implementation

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 '<br/>'; $ I ++;}?>While & switch statement implementation

Make a calculator

Such as test. php? A = 1 & B = 2 & operator = jia output 3

Such as test. php? A = 5 & B = 2 & operator = jian output 3

Such as test. php? A = 2 & B = 5 & operator = cheng output 10

Such as test. php? A = 6 & B = 3 & operator = chu output 2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.