Why this code has used implode function in array?

Making a contact form, so, I can’t understand why this code has given implode function:

if (isset($_POST['submit'])) {
 <select name="language[]" multiple size = "3">
			<option value="en">English</option>
			<option value="fr">French</option>
			<option value="hi">Hindi</option>

Why we have to use implode function?

Got it, implode function would stick all the values given in the language array so that we can select multiple options.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.