I wan to convert a string for example 1,2,3,4,5,6 to an array of integers in php? I find functions that only have access to the first character of the string for example 1.
return array_map('intval', explode(",", '1,2,3,4,5,6,7,8,9'));