How to combine strings inside foreach into single string PHP

后端 未结 8 1396
傲寒
傲寒 2020-12-11 04:35

I have code like this

$word = \'foo\';
$char_buff = str_split($word);

foreach ($char_buff as $chars){
    echo var_dump($chars);
}

The out

8条回答
提交回复
热议问题