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.
"USE customers" is only needed in more complex queries
Sure.
strpos just checks to make sure the test, in this case, 'd', is present anywhere in the string. However, the instructions with the Kata state the D should be the first character. So, instead of checking for any character, !== false, you could use == 0 which means 'd' is the first character.
sorry still learning. Is there any way you could explain why so I understand? thank you
This would actually fail with the test "aadda" or any other string that has a d but doesnt start with it.
Just finished! Thank you for this kata series!!!!
This is the best I've come across with PHP.
You have no idea how much I've learned from doing these.
I appreciate them and hope there's more!