$delimitedList = 'apple,orange,banana'; $valueToCheck = 'orange'; $isPresent = GeneralUtility::inList($delimitedList, $valueToCheck); if ($isPresent) { echo $valueToCheck . ' is present in the list'; } else { echo $valueToCheck . ' is not present in the list'; }In the above example, we have a delimited list of fruits and we want to check whether 'orange' is present in the list. We are using the inList() method of the GeneralUtility class to achieve this. The package library for the GeneralUtility class is "typo3/cms-core". This class is a part of the core library of TYPO3 CMS and provides various utility methods that can be used across the CMS.