4 of 110 menu

The Array to String PHP

In PHP, to join array elements into a string, the implode function is used. See the example:

<?php $arr = ['a', 'b', 'c']; $str = implode('.', $arr); echo $str; ?>

Code execution result:

'a.b.c'
English
БеларускаяEspañolРусский
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline