yii\web\CookieCollection::toArray PHP Method

toArray() public method

Returns the collection as a PHP array.
public toArray ( ) : array
return array the array representation of the collection. The array keys are cookie names, and the array values are the corresponding cookie objects.
    public function toArray()
    {
        return $this->_cookies;
    }