#77752Use strpos instead of substr to check the start of a string
Description
Use strpos instead of substr to check the start of a string.
Substr invokes additional memory allocation, which is not needed in the context. Strpos will do the same job, but without any overhead (it’s just searching a string).