$string = "Lorem, ipsum, dolor, sit"; $array = GeneralUtility::revExplode(',', $string); // $array returns ['sit', 'dolor', 'ipsum', 'Lorem']
$path = "/path/to/my/file.txt"; $segments = GeneralUtility::revExplode('/', $path); $filename = end($segments); // $filename returns 'file.txt'Based on the package name and function signature, it is likely that revExplode() is a part of the core TYPO3 CMS utility library (typo3/cms-core).