php explode to integer array code example
Example 1: php array map cast to int
$integerIDs = array_map('intval', explode(',', $string));
Example 2: php split string
explode(" ","Geeks for Geeks")
$integerIDs = array_map('intval', explode(',', $string));
explode(" ","Geeks for Geeks")