• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

mtoigo/PHP-Koans: PHP programming exercises.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

mtoigo/PHP-Koans

开源软件地址:

https://github.com/mtoigo/PHP-Koans

开源编程语言:

PHP 100.0%

开源软件介绍:

PHP-Koans

Learn PHP by fixing failing tests. Designed as a series of successive problems where you type missing pieces of code to learn the basics all the way to advanced concepts with PHP. When you're finished you'll also have an entire library of code samples to reference as well.

Designed to teach the basics of PHP and inspired by the absolutely awesome http://www.rubykoans.com Requires PHP 5.3 or greater.

#Prerequisites

  • Install PHP 5.3 or higher and the ability to run the php command from the command line.
  • Install Composer from https://getcomposer.org

Getting Started

  1. Checkout or fork this repository and make sure you're on the master branch.
  2. Open up a terminal run composer install from the checked out project to install dependencies.
  3. Run php koans.php from a terminal and follow the instructions. Re run this command as you solve the problems to see your progress.

#Exercises

##Chapter 1 - Variables

  1. Declaration - [S]
  2. Integers - [S]
  3. Floats - [S]
  4. Booleans - [S]
  5. Null - [S]
  6. Casting - [S]
  7. Assignment - [S]
  8. Constants - [S]

##Chapter 2 - Math

  1. Addition - [S]
  2. Subtraction - [S]
  3. Multiplication - [S]
  4. Division - [S]
  5. Modulus - [S]
  6. Rounding Naturally - [S]
  7. Rounding Up and Down - [S]
  8. Increment and Decrement - [S]

##Chapter 3 - Strings

  1. Concatenation - [S]
  2. Substitution - [S]
  3. Replacement - [S]
  4. Length - [S]
  5. Single Characters - [S]
  6. Substrings - [S]
  7. Changing Case - [S]
  8. Searching - [S]

#Status I'm building this out as a side project when I have time so the exercises don't cover all of the concepts they should yet, but everything in the master branch will always be complete. If you get stuck you can also check the solutions branch to see the pieces of missing code to fix the problems.

#Feedback If you found these helpful, spot a bug, or want to help contribute please contact me.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap