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'
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'