i have an array with numbers
print_r($arr_usr_id[$key]);
output: "930933934"
now i need to convert this to 930,933,934 as a string with commas...
$newnumbers = (chunk_split($arr_usr_id[$key],3,","));
works but output: "930,933,934," gives me a comma after the last number
with str_split($arr_usr_id[$key], 3); i get three "Array" as output...
what is the best way to sepperate the numbers (from: 123145124984 to: 123,145,124,984,...) with commas?