Convert a comma-delimited string into array of integers? June 23, 2022 by Tarik You can achieve this by following code, $integerIDs = array_map('intval', explode(',', $string));