You are here

public function SplQueue::unserialize in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-stdlib/src/SplQueue.php \Zend\Stdlib\SplQueue::unserialize()

Unserialize

Parameters

string $data:

Return value

void

Overrides SplQueue::unserialize

1 method overrides SplQueue::unserialize()
SplQueue::unserialize in vendor/zendframework/zend-stdlib/src/SplQueue.php
Unserialize

File

vendor/zendframework/zend-stdlib/src/SplQueue.php, line 49

Class

SplQueue
Serializable version of SplQueue

Namespace

Zend\Stdlib

Code

public function unserialize($data) {
  foreach (unserialize($data) as $item) {
    $this
      ->push($item);
  }
}