php convert array to integer code example Example: php array map cast to int $integerIDs = array_map('intval', explode(',', $string));