implode() публичный Метод

Concatenate values of a given key as a string.
public implode ( string $value, string $glue = null ) : string
$value string
$glue string
Результат string
Пример #1
0
 public function testImplode()
 {
     $data = new Collection(array(array('name' => 'kot', 'email' => 'foo'), array('name' => 'lol', 'email' => 'bar')));
     $this->assertEquals('foobar', $data->implode('email'));
     $this->assertEquals('foo,bar', $data->implode('email', ','));
 }