You are here

public function SplPriorityQueue::unserialize in Zircon Profile 8

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

Deserialize

Parameters

string $data:

Return value

void

Overrides SplPriorityQueue::unserialize

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

File

vendor/zendframework/zend-stdlib/src/SplPriorityQueue.php, line 85

Class

SplPriorityQueue
Serializable version of SplPriorityQueue

Namespace

Zend\Stdlib

Code

public function unserialize($data) {
  foreach (unserialize($data) as $item) {
    $this
      ->insert($item['data'], $item['priority']);
  }
}