yii\web\CookieCollection::toArray PHP Méthode

toArray() public méthode

Returns the collection as a PHP array.
public toArray ( ) : array
Résultat 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;
    }