mdref.json config
[mdref/mdref-http] / http / Cookie / __toString.md
1 # string http\Cookie::__toString()
2
3 String cast handler. Alias of http\Cookie::toString().
4
5 ## Params:
6
7 None.
8
9 ## Returns:
10
11 * string, the cookie(s) represented as string.
12
13 ## Example:
14
15 <?php
16 echo new http\Cookie("country=us; httpOnly; secure; path=/; domain=.php.net");
17 ?>
18
19 Yields:
20
21 country=us; domain=.php.net; path=/; secure; httpOnly;