How to combine strings inside foreach into single string PHP

后端 未结 8 1383
傲寒
傲寒 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条回答
  •  萌比男神i
    2020-12-11 05:23

    Maybe some of you are looking for this answer. I think var_dump() is no longer necessary for this problem.

    
    

    Here is the HTML

    A B C D

提交回复
热议问题