Project

General

Profile

Actions

Task #77752

closed

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

Added by Wouter Wolters about 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Code Cleanup
Target version:
-
Start date:
2016-09-01
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Sprint Focus:

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

Actions

Also available in: Atom PDF