You can achieve this by following code,
$integerIDs = array_map('intval', explode(',', $string));
More Related Contents:
- Split a comma-delimited string into an array?
- Convert backslash-delimited string into an associative array
- PHP: Split string into array, like explode with no delimiter
- Explode string into array with no empty elements?
- Remove empty array elements
- Array to String PHP?
- How create an array from the output of an array printed with print_r?
- Converting an integer to a string in PHP
- Convert flat array to a delimited string to be saved in the database
- String with array structure to Array [duplicate]
- Converting a number (1, 2, 3) to a string (one, two, three) in PHP
- php implode (101) with quotes
- Unexpected bracket ‘[‘ – PHP [duplicate]
- use strings to access (potentially large) multidimensional arrays
- How to split a long string without breaking words?
- String contains any items in an array (case insensitive)
- Convert a String into an Array of Characters
- Merge array items into string
- How to cast array elements to strings in PHP?
- Search and replace multiple values with multiple/different values in PHP5?
- Get last whole number in a string
- Add a prefix to each item of a PHP array
- Fastest way of deleting a value in a comma separated list
- PHP get values from SimpleXMLElement array
- How to implode array with key and value without foreach in PHP
- How to convert array values to lowercase in PHP?
- Convert a String to Variable
- Explode a paragraph into sentences in PHP
- Check if string contains word in array [duplicate]
- Is there an equivalent in C++ of PHP’s explode() function? [duplicate]