SyntaxFix
Write A Post
Hire A Developer
Questions
You can achieve this by following code,
$integerIDs = array_map('intval', explode(',', $string));