Subject: PHP

Convert Array to String

Write a PHP script to convert an array into a comma-separated string without using implode().

Example:
Input: [1, 2, 3, 4]
Output: "1,2,3,4"

Select file or drag and drop

PNG, JPG, SVG

Preview