Issue Task Closed

#77752Use strpos instead of substr to check the start of a string

Wouter Wolters 09/01/16, 15:49 updated 10/02/18, 11:07

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).

Reviews 1