Created list_with_comas.php and created function to get the desired output