New contact of the Ape (with PHP development environment and PHP simple algorithm problem)--2015.07 last half month, 2015.07 the first half month _php tutorial

Source: Internet
Author: User
Tags php development environment

New contact of the Ape (with PHP development environment and PHP simple algorithm problem)--2015.07 last half month, 2015.07 the first half 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 (recommended)

Development tools

Atom https://atom.io/(i)

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/(I use)

CSDN http://www.csdn.net/

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

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

Lavou • Entrepreneurship

Freelancers-Pig Network http://www.zbj.com/

36 Krypton http://36kr.com/

Tiger Sniffing net http://www.huxiu.com/

To go into the PHP algorithm problem (Implementation after adding code ...) )

Print only 0

The specific number is determined by the input parameter n

Print 00000 as N=5

Php $n= $_get[' N ' ]; for( $i= 0; $i< $n; $i++ ) { Echo"0" ; }?> // Modify n:eg://in the browser address entry field ...? N=8 Print n 0 based on n value

Print a line 0101010101010101010101

The specific number is determined by the input parameter n

such as test.php?n=3 printing 010

Implementation 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&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 ) { Case0: Echo' 0 ' ; Break ; Case1 ; Echo' 1 ' ; Break ; } $j++ ; } Echo'
' ; $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

http://www.bkjia.com/PHPjc/1029946.html www.bkjia.com true http://www.bkjia.com/PHPjc/1029946.html techarticle new contact of the Ape (with PHP development environment and PHP simple algorithm problem)--2015.07 the first half of the month, 2015.07 the first half of the Phpmysql development environment Preparation saehttp://sae.sina.com.cn/githubhttps:// GitHub ...

  • 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.