NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Interface ToArrayInterface

An object that can be represented as an array

### Direct known implementers

`Aws\DynamoDb\Model\BatchRequest\WriteRequestInterface`, `Aws\S3\Model\Acp`, `Guzzle\Service\Description\OperationInterface`, `Guzzle\Service\Description\ServiceDescription`, `Guzzle\Service\Resource\ResourceIteratorInterface`, `Aws\S3\Model\Grant`, `Aws\S3\Model\Grantee`, `Guzzle\Common\Collection`, `Guzzle\Common\Event`, `Guzzle\Http\Message\Header\HeaderCollection`, `Guzzle\Http\Message\Header\HeaderInterface`, `Guzzle\Plugin\Cookie\Cookie`, `Guzzle\Service\Command\CommandInterface`

### Indirect known implementers

`Aws\Common\Command\JsonCommand`, `Aws\Common\Command\QueryCommand`, `Aws\S3\Iterator\ListBucketsIterator`, `Aws\S3\Iterator\ListMultipartUploadsIterator`, `Aws\S3\Iterator\ListObjectsIterator`, `Aws\S3\Iterator\ListObjectVersionsIterator`, `Aws\S3\Model\PostObject`, `Guzzle\Http\Message\Header`, `Guzzle\Http\Message\Header\CacheControl`, `Guzzle\Http\Message\Header\Link`, `Guzzle\Http\QueryString`, `Guzzle\Service\Command\AbstractCommand`, `Aws\Common\Iterator\AwsResourceIterator`, `Guzzle\Service\Command\ClosureCommand`, `Guzzle\Service\Command\CreateResponseClassEvent`, `Guzzle\Service\Command\OperationCommand`, `Guzzle\Service\Description\Operation`, `Guzzle\Service\Resource\Model`, `Guzzle\Service\Resource\ResourceIterator`, `Aws\Common\Waiter\WaiterConfig`, `Aws\DynamoDb\Model\BatchRequest\AbstractWriteRequest`, `Aws\DynamoDb\Model\BatchRequest\DeleteRequest`, `Aws\DynamoDb\Model\BatchRequest\PutRequest`, `Aws\DynamoDb\Model\BatchRequest\UnprocessedRequest`, `Aws\Ec2\Iterator\DescribeInstancesIterator`, `Aws\S3\Command\S3Command`

Namespace: Guzzle\Common
Located at Guzzle/Common/ToArrayInterface.php

## Methods summary

- `public` `toArray ( )`

  Get the array representation of an object

## Methods detail

# `public array`
`toArray( )`

Get the array representation of an object

#### Returns

`array`

### Magic methods summary