Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upEnsure php7.4 compatibility #16
Conversation
|
I believe, simply replacing the curly brackets with square brackets is faster than strpos. (I realize that this is a micro-optimization) |
|
Hi
I think so, too - it was my first approach. But I guess there are many people out there who don't know about the array-like access to char positions in a string, so I chose strpos. |
|
Done |
|
thanks |
Hi
Array and string offset access syntax with curly braces is deprecated in php 7.4 so I replaced it by strpos calls.
I also optimized the OptionTest a bit