Back to the Learning!

Laracasts is packed full with over 1,000 lessons just like this one.

Sign up to get full access or log in to your account and sit back.

Published On Aug. 27th 2014

Code Katas in PHP: String Calculator

Episode 4 Run Time 16:04

Download

In this Kata, we need to build a string calculator class; however, there are a number of rules and gotchas related to how we perform the addition. Using PHPSpec once again, let's tackle this challenge.

View the source for this lesson on GitHub.