yii\web\Cookie::__toString PHP 메소드

__toString() 공개 메소드

php if (isset($request->cookies['name'])) { $value = (string) $request->cookies['name']; }
public __toString ( ) : string
리턴 string The value of the cookie. If the value property is null, an empty string will be returned.
    public function __toString()
    {
        return (string) $this->value;
    }