Collection::__toString PHP 메소드

__toString() 공개 메소드

Makes it possible to echo the entire object
public __toString ( ) : string
리턴 string
    public function __toString()
    {
        return implode('<br />', array_map(function ($item) {
            return (string) $item;
        }, $this->data));
    }

Usage Example

예제 #1
0
파일: DefaultArray.php 프로젝트: ihor/Nspl
 /**
  * @return string
  */
 public function __toString()
 {
     return 'defaultarray' . substr(parent::__toString(), 5);
 }
All Usage Examples Of Collection::__toString