__toString() public method

Makes it possible to echo the entire object
public __toString ( ) : string
return string
Example #1
0
 /**
  * @return string
  */
 public function __toString()
 {
     return 'defaultarray' . substr(parent::__toString(), 5);
 }
Example #2
0
 function __toString()
 {
     return sprintf("0\nBLOCK\n8\n%s\n2\n%s\n70\n%s\n%s3\n%s\n%s\n0\nENDBLK\n", $this->attributes['layer'], strtoupper($this->attributes['name']), $this->attributes['flag'], point($this->attributes['base']), strtoupper($this->attributes['name']), parent::__toString());
 }
Example #3
0
 /**
  * @return string
  */
 public function __toString()
 {
     return 'arrayobject' . substr(parent::__toString(), 5);
 }