Issue Feature Closed

#27160Do not delete uniqueArray in TYPO3 4.6.*

Stefan Froemken 05/31/11, 14:52 updated 08/17/12, 15:34

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

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.