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

# Class SplDoublyLinkedList

  SplDoublyLinkedList implements Iterator, Traversable, Countable, ArrayAccess, Serializable

### Direct known subclasses

`SplQueue`

PHP Extension: SPL
Documented at php.net

## Methods summary

- `public` `pop ( )`
- `public` `shift ( )`
- `public` `push ( mixed $value )`
- `public` `unshift ( mixed $value )`
- `public` `top ( )`
- `public` `bottom ( )`
- `public` `isEmpty ( )`
- `public` `setIteratorMode ( mixed $flags )`
- `public` `getIteratorMode ( )`
- `public` `count ( )`
- `public` `offsetExists ( mixed $index )`
- `public` `offsetGet ( mixed $index )`
- `public` `offsetSet ( mixed $index, mixed $newval )`
- `public` `offsetUnset ( mixed $index )`
- `public` `add ( mixed $index, mixed $newval )`
- `public` `rewind ( )`
- `public` `current ( )`
- `public` `key ( )`
- `public` `next ( )`
- `public` `prev ( )`
- `public` `valid ( )`
- `public` `unserialize ( mixed $serialized )`
- `public` `serialize ( )`

## Methods detail

# `public`
`pop( )`
# `public`
`shift( )`
# `public`
`push( mixed $value )`
# `public`
`unshift( mixed $value )`
# `public`
`top( )`
# `public`
`bottom( )`
# `public`
`isEmpty( )`
# `public`
`setIteratorMode( mixed $flags )`
# `public`
`getIteratorMode( )`
# `public`
`count( )`

#### Implementation of

`Countable::count()`
# `public`
`offsetExists( mixed $index )`

#### Implementation of

`ArrayAccess::offsetExists()`
# `public`
`offsetGet( mixed $index )`

#### Implementation of

`ArrayAccess::offsetGet()`
# `public`
`offsetSet( mixed $index, mixed $newval )`

#### Implementation of

`ArrayAccess::offsetSet()`
# `public`
`offsetUnset( mixed $index )`

#### Implementation of

`ArrayAccess::offsetUnset()`
# `public`
`add( mixed $index, mixed $newval )`
# `public`
`rewind( )`

#### Implementation of

`Iterator::rewind()`
# `public`
`current( )`

#### Implementation of

`Iterator::current()`
# `public`
`key( )`

#### Implementation of

`Iterator::key()`
# `public`
`next( )`

#### Implementation of

`Iterator::next()`
# `public`
`prev( )`
# `public`
`valid( )`

#### Implementation of

`Iterator::valid()`
# `public`
`unserialize( mixed $serialized )`

#### Implementation of

`Serializable::unserialize()`
# `public`
`serialize( )`

#### Implementation of

`Serializable::serialize()`

### Magic methods summary

## Constants summary

`integer` | `IT_MODE_LIFO` | `2` | #
`integer` | `IT_MODE_FIFO` | `0` | #
`integer` | `IT_MODE_DELETE` | `1` | #
`integer` | `IT_MODE_KEEP` | `0` | #