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.
that is a smart solve ,, i like it , i know that is don't best practice and there was more solutions is more readable than it's but this is a new practice and a new way for the solution for me, so i like it.
i know my english language is bad :)
Thanks for this question. At first thought I wanted to ask why the hell is this important?!
But then I tested out the performance differences between == and ===. And (at least with my testing
environment (average time spend for 100.000 comparisons x 1000 tries to have an average result in php8.2) I
was able to find out that == needs only 75% execution time of ===. And I learned about a function
I didn't know before. microtime(true);
So thanks again for your great input!
yes, Strings are always immutable (unchangable)
Oh!, thank you I didn't know range()
But now you do...
Wish I knew the replace method......
This comment is hidden because it contains spoiler information about the solution
why using "===" instead of "==" ?
I googled, and may be understood the patterns problem you mentioned. But this version is same as:
replace(char oldChar, char newChar) right?