Project

General

Profile

Actions

Task #55445

closed

Use array access instead of strpos($str, n, 1)

Added by Michiel Roos almost 11 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2014-01-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
no-brainer
Sprint Focus:

Description

A call to strpos can be avoided in case the 'count' parameter is 1.

Use:
$str{n}

Instead of:
strpos($str, n, 1)


Related issues 1 (0 open1 closed)

Blocks TYPO3 Core - Task #54517: Replace substr() and strpos() with GeneralUtility::isFirstPartOfString when it makes senseRejectedJo Hasenau2013-12-19

Actions
Actions

Also available in: Atom PDF