Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
How "1" works though?
I like this one better than my own solution.
Great one! I forgot that I could apply split method in the foreach declaration instead doing it before.
Really nice!
you had to use ternary operator with a lot a parentheses
real nice. this is why I appreciate codewars, get to see smart solutions such as this
that was my first idea but then I decided to use preg_match_all since it returns the number of matches and there is an 'i' modifier.
Use spoiler flag next time, please.
This comment is hidden because it contains spoiler information about the solution
What input? There are 3 arguments.
The first and second argument will be numbers. Third argument will be a sign. Obviously the solution can be extended but that's not what is asked.
What if the input is a boolean?