How do I get an array of integers from a comma separated string of numbers?

Lucyan

New Member
Say I have the string '1,2,3,4,5' and I want to convert this to an array of integerrs, how would I go about doing that? I know I can use explode to create an array with the string but I need the array items to be integers...thanks!
 
Back
Top