---
title: "Deprecation: #99900 - $limit parameter of GeneralUtility::intExplode()"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-99900-1676292952"
source: "Changelog/12.3/Deprecation-99900-GeneralUtilityIntExplodeLimitParameter.rst"
typo3-version: "12.3"
typo3-major: 12
type: "deprecation"
issue: 99900
forge: "https://forge.typo3.org/issues/99900"
tags: ["PHP-API", "FullyScanned", "ext:core"]
rendered: "2026-09-28T19:48:07+00:00"
---

# Deprecation: #99900 - $limit parameter of GeneralUtility::intExplode() {#deprecation-99900-1676292952}

See [forge#99900](https://forge.typo3.org/issues/99900)

## Description {#description}

The static method `GeneralUtility::intExplode()` has a lesser known fourth
parameter `$limit`. The reason it was added to the `intExplode()` method
is purely historical, when it used to extend the `trimExplode()` method. The
dependency was resolved, but the parameter stayed. As this method is supposed to
only return `int` values in an array, the `$limit` parameter is now
deprecated.

## Impact {#impact}

Calling `GeneralUtility::intExplode()` with the fourth parameter
`$limit` will trigger a deprecation warning and will add an entry to the
deprecation log.

## Affected installations {#affected-installations}

TYPO3 installations that call `GeneralUtility::intExplode()` with the
fourth parameter `$limit`.

## Migration {#migration}

In the rare case that you are using the `$limit` parameter you will need to
switch to PHP's native `explode()` function, and then use
`array_map()` to convert the resulting array to integers. If that's
impractical, you can simply copy the old `intExplode` method to your own
code.
