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.
nice. I did the same but used preg_match instead of str_replace.
my bad
It's already there.
not perfect, description missing important detail
TIP: last column of the result table needs to be named toy_count
wow, this is another level. it's crazy to think the amount of "ifs" that I used and this could have been solved more simply
If you have 100kg water and remove 50kg water, you don't go from 100% water to 50% water, you go from 100% water to 100% water.
It does not say that 1kg of water was removed. It does say that 50kg of water was removed, and that it now consists of 98% water.
This comment is hidden because it contains spoiler information about the solution
I can believe that I was trying to do it with if else statements and then I found this function.
wow