Project

General

Profile

Actions

Feature #27160

closed

Do not delete uniqueArray in TYPO3 4.6.*

Added by Stefan Froemken over 13 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-05-31
Due date:
% Done:

0%

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

Description

Hello Core-Team,

I just see that you want to delete t3lib_div::uniqueArray in TYPO3 4.6.*. Please don't do that, be faster than PHP: unique_array():

// the following is much faster than array_unique()
$tempArray = array();
foreach($myArrayWithDoubledValues as $key => $val) {
$tempArray[$val] = true;
}
$uniqueArray = array_keys($tempArray);

I have tested it...this is really fast and I think this should be stayed in TYPO3-API.

Stefan


Files

array_unique.php (816 Bytes) array_unique.php Stefan Froemken, 2011-06-01 10:11
Actions

Also available in: Atom PDF