Bug #19601 » 9779.diff
t3lib/class.t3lib_div.php (working copy) | ||
---|---|---|
* @return array Exploded values
|
||
*/
|
||
public static function trimExplode($delim, $string, $removeEmptyValues = false, $limit = 0) {
|
||
$explodedValues = $limit ? explode($delim, $string, $limit) : explode($delim, $string);
|
||
$explodedValues = explode($delim, $string);
|
||
$result = array_map('trim', $explodedValues);
|
||
... | ... | |
$result = $temp;
|
||
}
|
||
if ($limit != 0) {
|
||
$result = array_slice($result, 0, $limit);
|
||
}
|
||
return $result;
|
||
}
|
||