| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
I believe, simply replacing the curly brackets with square brackets is faster than strpos. (I realize that this is a micro-optimization)
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
|
Done |
Sorry, something went wrong.
|
thanks |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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