mdref.json config
[mdref/mdref-http] / http / Message / Body / __toString.md
1 # string http\Message\Body::__toString()
2
3 String cast handler.
4
5 ## Params:
6
7 None.
8
9 ## Returns:
10
11 * string, the message body.
12
13 ## Example:
14
15 <?php
16 $body = new http\Message\Body;
17 $body->append("this\nis\nan\nexample!\n");
18 echo $body;
19 ?>
20
21 Yields:
22
23 this
24 is
25 an
26 example!